@fiado/type-kit 3.24.0 → 3.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/remittance/dtos/RemittanceAddBeneficiaryRequest.d.ts +27 -0
- package/bin/remittance/dtos/RemittanceAddBeneficiaryRequest.js +110 -0
- package/bin/remittance/dtos/RemittanceBeneficiary.d.ts +20 -3
- package/bin/remittance/dtos/RemittanceBeneficiary.js +0 -5
- package/bin/remittance/dtos/RemittanceListBeneficiariesResponse.d.ts +6 -0
- package/bin/remittance/dtos/RemittanceListBeneficiariesResponse.js +6 -0
- package/bin/remittance/dtos/RemittanceUpdateBeneficiaryRequest.d.ts +11 -0
- package/bin/remittance/dtos/RemittanceUpdateBeneficiaryRequest.js +40 -0
- package/bin/remittance/dtos/index.d.ts +3 -0
- package/bin/remittance/dtos/index.js +3 -0
- package/bin/riskProfile/index.d.ts +0 -17
- package/bin/riskProfile/index.js +0 -19
- package/package.json +2 -3
- package/src/remittance/dtos/RemittanceAddBeneficiaryRequest.ts +81 -0
- package/src/remittance/dtos/RemittanceBeneficiary.ts +23 -3
- package/src/remittance/dtos/RemittanceListBeneficiariesResponse.ts +7 -0
- package/src/remittance/dtos/RemittanceUpdateBeneficiaryRequest.ts +24 -0
- package/src/remittance/dtos/index.ts +3 -0
- package/src/riskProfile/index.ts +0 -21
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +0 -22
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +0 -91
- package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +0 -19
- package/bin/benefitCenter/dtos/FieldOverrideRequest.js +0 -80
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +0 -9
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +0 -29
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +0 -10
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +0 -14
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +0 -13
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +0 -71
- package/bin/comission-business/dtos/GenerateReportRequest.d.ts +0 -10
- package/bin/comission-business/dtos/GenerateReportRequest.js +0 -2
- package/bin/comission-business/dtos/GenerateReportResponse.d.ts +0 -6
- package/bin/comission-business/dtos/GenerateReportResponse.js +0 -2
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +0 -5
- package/bin/comission-business/enums/PaymentStatusEnum.js +0 -9
- package/bin/credit/dtos/CreditBannerStateResponse.d.ts +0 -10
- package/bin/credit/dtos/CreditBannerStateResponse.js +0 -6
- package/bin/credit/dtos/CreditDetailResponse.d.ts +0 -23
- package/bin/credit/dtos/CreditDetailResponse.js +0 -6
- package/bin/credit/dtos/CreditEligibilityResponse.d.ts +0 -9
- package/bin/credit/dtos/CreditEligibilityResponse.js +0 -6
- package/bin/credit/dtos/CreditMovementResponse.d.ts +0 -20
- package/bin/credit/dtos/CreditMovementResponse.js +0 -9
- package/bin/credit/dtos/CreditRequestCreate.d.ts +0 -4
- package/bin/credit/dtos/CreditRequestCreate.js +0 -26
- package/bin/credit/dtos/CreditRequestResponse.d.ts +0 -7
- package/bin/credit/dtos/CreditRequestResponse.js +0 -6
- package/bin/credit/dtos/CreditScheduleResponse.d.ts +0 -18
- package/bin/credit/dtos/CreditScheduleResponse.js +0 -9
- package/bin/credit/dtos/CreditStatementResponse.d.ts +0 -11
- package/bin/credit/dtos/CreditStatementResponse.js +0 -9
- package/bin/credit/dtos/EarlyPaymentRequest.d.ts +0 -7
- package/bin/credit/dtos/EarlyPaymentRequest.js +0 -37
- package/bin/credit/dtos/EarlyPaymentResponse.d.ts +0 -11
- package/bin/credit/dtos/EarlyPaymentResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/CreditBalanceRequest.js +0 -21
- package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +0 -11
- package/bin/credit/dtos/internal/CreditCollectionRequest.js +0 -59
- package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +0 -12
- package/bin/credit/dtos/internal/CreditCollectionResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +0 -7
- package/bin/credit/dtos/internal/CreditDisbursementRequest.js +0 -43
- package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditDisbursementResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/CreditProfileRequest.js +0 -23
- package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +0 -5
- package/bin/credit/dtos/internal/CreditReversalRequest.js +0 -31
- package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +0 -7
- package/bin/credit/dtos/internal/CreditReversalResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +0 -46
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +0 -6
- package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/DocumentSignRequest.js +0 -21
- package/bin/credit/dtos/internal/LienApplyRequest.d.ts +0 -7
- package/bin/credit/dtos/internal/LienApplyRequest.js +0 -45
- package/bin/credit/enums/CollectionFrequencyEnum.d.ts +0 -5
- package/bin/credit/enums/CollectionFrequencyEnum.js +0 -9
- package/bin/credit/enums/CreditOperationEnum.d.ts +0 -11
- package/bin/credit/enums/CreditOperationEnum.js +0 -15
- package/bin/credit/enums/CreditStatusEnum.d.ts +0 -12
- package/bin/credit/enums/CreditStatusEnum.js +0 -16
- package/bin/credit/enums/DelinquencyLevelEnum.d.ts +0 -9
- package/bin/credit/enums/DelinquencyLevelEnum.js +0 -13
- package/bin/credit/enums/DocumentTypeEnum.d.ts +0 -8
- package/bin/credit/enums/DocumentTypeEnum.js +0 -12
- package/bin/credit/enums/OfferStatusEnum.d.ts +0 -8
- package/bin/credit/enums/OfferStatusEnum.js +0 -12
- package/bin/credit/enums/PaymentTypeEnum.d.ts +0 -9
- package/bin/credit/enums/PaymentTypeEnum.js +0 -13
- package/bin/credit/enums/ReconciliationStatusEnum.d.ts +0 -6
- package/bin/credit/enums/ReconciliationStatusEnum.js +0 -10
- package/bin/credit/enums/TransferStatusEnum.d.ts +0 -8
- package/bin/credit/enums/TransferStatusEnum.js +0 -12
- package/bin/riskProfile/dtos/private/AppendAlertNoteRequest.d.ts +0 -16
- package/bin/riskProfile/dtos/private/AppendAlertNoteRequest.js +0 -45
- package/bin/riskProfile/dtos/private/AppendAlertNoteResponse.d.ts +0 -10
- package/bin/riskProfile/dtos/private/AppendAlertNoteResponse.js +0 -36
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertRequest.d.ts +0 -19
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertRequest.js +0 -64
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertResponse.d.ts +0 -8
- package/bin/riskProfile/dtos/private/CreateBlockedListAlertResponse.js +0 -31
- package/bin/riskProfile/dtos/private/DictaminateAlertRequest.d.ts +0 -17
- package/bin/riskProfile/dtos/private/DictaminateAlertRequest.js +0 -46
- package/bin/riskProfile/dtos/private/DictaminateAlertResponse.d.ts +0 -14
- package/bin/riskProfile/dtos/private/DictaminateAlertResponse.js +0 -46
- package/bin/riskProfile/dtos/private/MarkAlertReportedRequest.d.ts +0 -18
- package/bin/riskProfile/dtos/private/MarkAlertReportedRequest.js +0 -52
- package/bin/riskProfile/dtos/private/MarkAlertReportedResponse.d.ts +0 -9
- package/bin/riskProfile/dtos/private/MarkAlertReportedResponse.js +0 -35
- package/bin/riskProfile/dtos/private/SetCustomAlarmRequest.d.ts +0 -17
- package/bin/riskProfile/dtos/private/SetCustomAlarmRequest.js +0 -52
- package/bin/riskProfile/dtos/private/SetCustomAlarmResponse.d.ts +0 -13
- package/bin/riskProfile/dtos/private/SetCustomAlarmResponse.js +0 -48
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeRequest.d.ts +0 -14
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeRequest.js +0 -44
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeResponse.d.ts +0 -20
- package/bin/riskProfile/dtos/private/SetDeclaredIncomeResponse.js +0 -49
- package/bin/riskProfile/dtos/private/SetManualRiskLevelRequest.d.ts +0 -24
- package/bin/riskProfile/dtos/private/SetManualRiskLevelRequest.js +0 -55
- package/bin/riskProfile/dtos/private/SetManualRiskLevelResponse.d.ts +0 -20
- package/bin/riskProfile/dtos/private/SetManualRiskLevelResponse.js +0 -54
- package/bin/riskProfile/enums/CustomAlarmName.d.ts +0 -9
- package/bin/riskProfile/enums/CustomAlarmName.js +0 -13
- package/bin/riskProfile/enums/DictamenStatus.d.ts +0 -9
- package/bin/riskProfile/enums/DictamenStatus.js +0 -13
- package/bin/riskProfile/enums/NotesMode.d.ts +0 -9
- package/bin/riskProfile/enums/NotesMode.js +0 -13
- package/src/riskProfile/dtos/private/AppendAlertNoteRequest.ts +0 -29
- package/src/riskProfile/dtos/private/AppendAlertNoteResponse.ts +0 -12
- package/src/riskProfile/dtos/private/CreateBlockedListAlertRequest.ts +0 -22
- package/src/riskProfile/dtos/private/CreateBlockedListAlertResponse.ts +0 -10
- package/src/riskProfile/dtos/private/DictaminateAlertRequest.ts +0 -30
- package/src/riskProfile/dtos/private/DictaminateAlertResponse.ts +0 -16
- package/src/riskProfile/dtos/private/MarkAlertReportedRequest.ts +0 -21
- package/src/riskProfile/dtos/private/MarkAlertReportedResponse.ts +0 -11
- package/src/riskProfile/dtos/private/SetCustomAlarmRequest.ts +0 -31
- package/src/riskProfile/dtos/private/SetCustomAlarmResponse.ts +0 -15
- package/src/riskProfile/dtos/private/SetDeclaredIncomeRequest.ts +0 -26
- package/src/riskProfile/dtos/private/SetDeclaredIncomeResponse.ts +0 -22
- package/src/riskProfile/dtos/private/SetManualRiskLevelRequest.ts +0 -37
- package/src/riskProfile/dtos/private/SetManualRiskLevelResponse.ts +0 -22
- package/src/riskProfile/enums/CustomAlarmName.ts +0 -9
- package/src/riskProfile/enums/DictamenStatus.ts +0 -9
- package/src/riskProfile/enums/NotesMode.ts +0 -9
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReceptionMethod } from "../enums/ReceptionMethod";
|
|
2
|
+
import { RemittanceCountryISO } from "../enums/RemittanceCountryISO";
|
|
3
|
+
export declare class RemittanceBeneficiaryAddressDTO {
|
|
4
|
+
address1: string;
|
|
5
|
+
address2?: string;
|
|
6
|
+
city: string;
|
|
7
|
+
state: string;
|
|
8
|
+
stateName?: string;
|
|
9
|
+
zipCode?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class RemittanceAddBeneficiaryRequest {
|
|
12
|
+
firstName: string;
|
|
13
|
+
middleName?: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
secondLastName?: string;
|
|
16
|
+
/** Sin código país (UNIR lo agrega). 7-15 dígitos numéricos. */
|
|
17
|
+
phone: string;
|
|
18
|
+
countryISO: RemittanceCountryISO;
|
|
19
|
+
currencyISO: string;
|
|
20
|
+
receptionMethod: ReceptionMethod;
|
|
21
|
+
payerCode: string;
|
|
22
|
+
/** Requerido si receptionMethod=ACCOUNT_CREDIT. Validado por regex del payer en el connector. */
|
|
23
|
+
accNumber?: string;
|
|
24
|
+
/** Requerido si payer.isPayerBranchRequired=YES. */
|
|
25
|
+
payerBranchCode?: string;
|
|
26
|
+
address: RemittanceBeneficiaryAddressDTO;
|
|
27
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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.RemittanceAddBeneficiaryRequest = exports.RemittanceBeneficiaryAddressDTO = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const ReceptionMethod_1 = require("../enums/ReceptionMethod");
|
|
16
|
+
const RemittanceCountryISO_1 = require("../enums/RemittanceCountryISO");
|
|
17
|
+
class RemittanceBeneficiaryAddressDTO {
|
|
18
|
+
}
|
|
19
|
+
exports.RemittanceBeneficiaryAddressDTO = RemittanceBeneficiaryAddressDTO;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RemittanceBeneficiaryAddressDTO.prototype, "address1", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RemittanceBeneficiaryAddressDTO.prototype, "address2", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], RemittanceBeneficiaryAddressDTO.prototype, "city", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], RemittanceBeneficiaryAddressDTO.prototype, "state", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], RemittanceBeneficiaryAddressDTO.prototype, "stateName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], RemittanceBeneficiaryAddressDTO.prototype, "zipCode", void 0);
|
|
50
|
+
class RemittanceAddBeneficiaryRequest {
|
|
51
|
+
}
|
|
52
|
+
exports.RemittanceAddBeneficiaryRequest = RemittanceAddBeneficiaryRequest;
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], RemittanceAddBeneficiaryRequest.prototype, "firstName", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsString)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], RemittanceAddBeneficiaryRequest.prototype, "middleName", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], RemittanceAddBeneficiaryRequest.prototype, "lastName", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], RemittanceAddBeneficiaryRequest.prototype, "secondLastName", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
(0, class_validator_1.Matches)(/^\d{7,15}$/, { message: "phone must be 7-15 digits, no country code" }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], RemittanceAddBeneficiaryRequest.prototype, "phone", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsEnum)(RemittanceCountryISO_1.RemittanceCountryISO),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], RemittanceAddBeneficiaryRequest.prototype, "countryISO", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
84
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], RemittanceAddBeneficiaryRequest.prototype, "currencyISO", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsEnum)(ReceptionMethod_1.ReceptionMethod),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], RemittanceAddBeneficiaryRequest.prototype, "receptionMethod", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsString)(),
|
|
93
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], RemittanceAddBeneficiaryRequest.prototype, "payerCode", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsString)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], RemittanceAddBeneficiaryRequest.prototype, "accNumber", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
(0, class_validator_1.IsString)(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], RemittanceAddBeneficiaryRequest.prototype, "payerBranchCode", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_validator_1.ValidateNested)(),
|
|
108
|
+
(0, class_transformer_1.Type)(() => RemittanceBeneficiaryAddressDTO),
|
|
109
|
+
__metadata("design:type", RemittanceBeneficiaryAddressDTO)
|
|
110
|
+
], RemittanceAddBeneficiaryRequest.prototype, "address", void 0);
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
import { ReceptionMethod } from "../enums/ReceptionMethod";
|
|
2
2
|
import { RemittanceCountryISO } from "../enums/RemittanceCountryISO";
|
|
3
3
|
/**
|
|
4
|
-
* Beneficiary shape cross-lambda.
|
|
5
|
-
*
|
|
6
|
-
* (
|
|
4
|
+
* Beneficiary shape cross-lambda. Estado: `ACTIVE` o `DEACTIVATED`.
|
|
5
|
+
* `accNumberLastFour` se expone para display; el accNumber completo NUNCA
|
|
6
|
+
* sale del connector (PII / regulación). UNIR mantiene la fuente de verdad.
|
|
7
7
|
*/
|
|
8
|
+
export type RemittanceBeneficiaryStatus = "ACTIVE" | "DEACTIVATED";
|
|
9
|
+
export interface RemittanceBeneficiaryAddress {
|
|
10
|
+
address1: string;
|
|
11
|
+
address2?: string;
|
|
12
|
+
city: string;
|
|
13
|
+
state: string;
|
|
14
|
+
stateName?: string;
|
|
15
|
+
zipCode?: string;
|
|
16
|
+
}
|
|
8
17
|
export declare class RemittanceBeneficiary {
|
|
9
18
|
beneficiaryId: string;
|
|
10
19
|
firstName: string;
|
|
20
|
+
middleName?: string;
|
|
11
21
|
lastName: string;
|
|
22
|
+
secondLastName?: string;
|
|
23
|
+
phone: string;
|
|
12
24
|
countryISO: RemittanceCountryISO;
|
|
13
25
|
currencyISO: string;
|
|
14
26
|
receptionMethod: ReceptionMethod;
|
|
15
27
|
payerCode: string;
|
|
16
28
|
payerName: string;
|
|
29
|
+
payerBranchCode?: string;
|
|
17
30
|
accNumberLastFour?: string;
|
|
31
|
+
address?: RemittanceBeneficiaryAddress;
|
|
32
|
+
status: RemittanceBeneficiaryStatus;
|
|
18
33
|
lastUsedAt?: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
19
36
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RemittanceBeneficiary = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Beneficiary shape cross-lambda. Stub mínimo para F2 (referenciado por
|
|
6
|
-
* RemittanceHomeResponse). F4 lo extiende con el resto de campos del CRUD
|
|
7
|
-
* (address, additionalFields, status, etc.).
|
|
8
|
-
*/
|
|
9
4
|
class RemittanceBeneficiary {
|
|
10
5
|
}
|
|
11
6
|
exports.RemittanceBeneficiary = RemittanceBeneficiary;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RemittanceBeneficiaryAddressDTO } from "./RemittanceAddBeneficiaryRequest";
|
|
2
|
+
/**
|
|
3
|
+
* UNIR EditBeneficiary permite cambiar campos limitados: nickName, phone, address.
|
|
4
|
+
* NO permite cambiar firstName/lastName/payer/currency.
|
|
5
|
+
* Reflejamos esa restricción aquí — los campos no editables NO aparecen en la request.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RemittanceUpdateBeneficiaryRequest {
|
|
8
|
+
phone?: string;
|
|
9
|
+
address?: RemittanceBeneficiaryAddressDTO;
|
|
10
|
+
payerBranchCode?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.RemittanceUpdateBeneficiaryRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const RemittanceAddBeneficiaryRequest_1 = require("./RemittanceAddBeneficiaryRequest");
|
|
16
|
+
/**
|
|
17
|
+
* UNIR EditBeneficiary permite cambiar campos limitados: nickName, phone, address.
|
|
18
|
+
* NO permite cambiar firstName/lastName/payer/currency.
|
|
19
|
+
* Reflejamos esa restricción aquí — los campos no editables NO aparecen en la request.
|
|
20
|
+
*/
|
|
21
|
+
class RemittanceUpdateBeneficiaryRequest {
|
|
22
|
+
}
|
|
23
|
+
exports.RemittanceUpdateBeneficiaryRequest = RemittanceUpdateBeneficiaryRequest;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.Matches)(/^\d{7,15}$/, { message: "phone must be 7-15 digits, no country code" }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RemittanceUpdateBeneficiaryRequest.prototype, "phone", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.ValidateNested)(),
|
|
33
|
+
(0, class_transformer_1.Type)(() => RemittanceAddBeneficiaryRequest_1.RemittanceBeneficiaryAddressDTO),
|
|
34
|
+
__metadata("design:type", RemittanceAddBeneficiaryRequest_1.RemittanceBeneficiaryAddressDTO)
|
|
35
|
+
], RemittanceUpdateBeneficiaryRequest.prototype, "address", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], RemittanceUpdateBeneficiaryRequest.prototype, "payerBranchCode", void 0);
|
|
@@ -3,6 +3,9 @@ export * from "./RemittanceOnboardRequest";
|
|
|
3
3
|
export * from "./RemittanceOnboardResponse";
|
|
4
4
|
export * from "./RemittanceSecurityQuestionsResponse";
|
|
5
5
|
export * from "./RemittanceBeneficiary";
|
|
6
|
+
export * from "./RemittanceAddBeneficiaryRequest";
|
|
7
|
+
export * from "./RemittanceUpdateBeneficiaryRequest";
|
|
8
|
+
export * from "./RemittanceListBeneficiariesResponse";
|
|
6
9
|
export * from "./RemittanceTransaction";
|
|
7
10
|
export * from "./RemittanceLimitsInfo";
|
|
8
11
|
export * from "./RemittanceHomeResponse";
|
|
@@ -19,6 +19,9 @@ __exportStar(require("./RemittanceOnboardRequest"), exports);
|
|
|
19
19
|
__exportStar(require("./RemittanceOnboardResponse"), exports);
|
|
20
20
|
__exportStar(require("./RemittanceSecurityQuestionsResponse"), exports);
|
|
21
21
|
__exportStar(require("./RemittanceBeneficiary"), exports);
|
|
22
|
+
__exportStar(require("./RemittanceAddBeneficiaryRequest"), exports);
|
|
23
|
+
__exportStar(require("./RemittanceUpdateBeneficiaryRequest"), exports);
|
|
24
|
+
__exportStar(require("./RemittanceListBeneficiariesResponse"), exports);
|
|
22
25
|
__exportStar(require("./RemittanceTransaction"), exports);
|
|
23
26
|
__exportStar(require("./RemittanceLimitsInfo"), exports);
|
|
24
27
|
__exportStar(require("./RemittanceHomeResponse"), exports);
|
|
@@ -20,20 +20,3 @@ export * from './enums/AlarmName';
|
|
|
20
20
|
export * from './enums/UserQuestionnaireStatusEnum';
|
|
21
21
|
export * from './enums/UserQuestionnaireQuestionAnswerEnum';
|
|
22
22
|
export * from './enums/UserQuestionnaireQuestionStatusEnum';
|
|
23
|
-
export * from './enums/CustomAlarmName';
|
|
24
|
-
export * from './enums/DictamenStatus';
|
|
25
|
-
export * from './enums/NotesMode';
|
|
26
|
-
export * from './dtos/private/DictaminateAlertRequest';
|
|
27
|
-
export * from './dtos/private/DictaminateAlertResponse';
|
|
28
|
-
export * from './dtos/private/AppendAlertNoteRequest';
|
|
29
|
-
export * from './dtos/private/AppendAlertNoteResponse';
|
|
30
|
-
export * from './dtos/private/CreateBlockedListAlertRequest';
|
|
31
|
-
export * from './dtos/private/CreateBlockedListAlertResponse';
|
|
32
|
-
export * from './dtos/private/MarkAlertReportedRequest';
|
|
33
|
-
export * from './dtos/private/MarkAlertReportedResponse';
|
|
34
|
-
export * from './dtos/private/SetManualRiskLevelRequest';
|
|
35
|
-
export * from './dtos/private/SetManualRiskLevelResponse';
|
|
36
|
-
export * from './dtos/private/SetCustomAlarmRequest';
|
|
37
|
-
export * from './dtos/private/SetCustomAlarmResponse';
|
|
38
|
-
export * from './dtos/private/SetDeclaredIncomeRequest';
|
|
39
|
-
export * from './dtos/private/SetDeclaredIncomeResponse';
|
package/bin/riskProfile/index.js
CHANGED
|
@@ -36,22 +36,3 @@ __exportStar(require("./enums/AlarmName"), exports);
|
|
|
36
36
|
__exportStar(require("./enums/UserQuestionnaireStatusEnum"), exports);
|
|
37
37
|
__exportStar(require("./enums/UserQuestionnaireQuestionAnswerEnum"), exports);
|
|
38
38
|
__exportStar(require("./enums/UserQuestionnaireQuestionStatusEnum"), exports);
|
|
39
|
-
// Enums PLD privados
|
|
40
|
-
__exportStar(require("./enums/CustomAlarmName"), exports);
|
|
41
|
-
__exportStar(require("./enums/DictamenStatus"), exports);
|
|
42
|
-
__exportStar(require("./enums/NotesMode"), exports);
|
|
43
|
-
// DTOs PLD privados — endpoints del PrivateController para Dashboard regulatorio
|
|
44
|
-
__exportStar(require("./dtos/private/DictaminateAlertRequest"), exports);
|
|
45
|
-
__exportStar(require("./dtos/private/DictaminateAlertResponse"), exports);
|
|
46
|
-
__exportStar(require("./dtos/private/AppendAlertNoteRequest"), exports);
|
|
47
|
-
__exportStar(require("./dtos/private/AppendAlertNoteResponse"), exports);
|
|
48
|
-
__exportStar(require("./dtos/private/CreateBlockedListAlertRequest"), exports);
|
|
49
|
-
__exportStar(require("./dtos/private/CreateBlockedListAlertResponse"), exports);
|
|
50
|
-
__exportStar(require("./dtos/private/MarkAlertReportedRequest"), exports);
|
|
51
|
-
__exportStar(require("./dtos/private/MarkAlertReportedResponse"), exports);
|
|
52
|
-
__exportStar(require("./dtos/private/SetManualRiskLevelRequest"), exports);
|
|
53
|
-
__exportStar(require("./dtos/private/SetManualRiskLevelResponse"), exports);
|
|
54
|
-
__exportStar(require("./dtos/private/SetCustomAlarmRequest"), exports);
|
|
55
|
-
__exportStar(require("./dtos/private/SetCustomAlarmResponse"), exports);
|
|
56
|
-
__exportStar(require("./dtos/private/SetDeclaredIncomeRequest"), exports);
|
|
57
|
-
__exportStar(require("./dtos/private/SetDeclaredIncomeResponse"), exports);
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/type-kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "jest",
|
|
9
|
-
"build": "tsc"
|
|
10
|
-
"prepublishOnly": "npm run build"
|
|
9
|
+
"build": "tsc"
|
|
11
10
|
},
|
|
12
11
|
"keywords": [],
|
|
13
12
|
"author": "Fiado Inc",
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IsEnum, IsNotEmpty, IsOptional, IsString, Matches, ValidateNested } from "class-validator";
|
|
2
|
+
import { Type } from "class-transformer";
|
|
3
|
+
import { ReceptionMethod } from "../enums/ReceptionMethod";
|
|
4
|
+
import { RemittanceCountryISO } from "../enums/RemittanceCountryISO";
|
|
5
|
+
|
|
6
|
+
export class RemittanceBeneficiaryAddressDTO {
|
|
7
|
+
@IsString()
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
address1!: string;
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsString()
|
|
13
|
+
address2?: string;
|
|
14
|
+
|
|
15
|
+
@IsString()
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
city!: string;
|
|
18
|
+
|
|
19
|
+
@IsString()
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
state!: string;
|
|
22
|
+
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsString()
|
|
25
|
+
stateName?: string;
|
|
26
|
+
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsString()
|
|
29
|
+
zipCode?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class RemittanceAddBeneficiaryRequest {
|
|
33
|
+
@IsString()
|
|
34
|
+
@IsNotEmpty()
|
|
35
|
+
firstName!: string;
|
|
36
|
+
|
|
37
|
+
@IsOptional()
|
|
38
|
+
@IsString()
|
|
39
|
+
middleName?: string;
|
|
40
|
+
|
|
41
|
+
@IsString()
|
|
42
|
+
@IsNotEmpty()
|
|
43
|
+
lastName!: string;
|
|
44
|
+
|
|
45
|
+
@IsOptional()
|
|
46
|
+
@IsString()
|
|
47
|
+
secondLastName?: string;
|
|
48
|
+
|
|
49
|
+
/** Sin código país (UNIR lo agrega). 7-15 dígitos numéricos. */
|
|
50
|
+
@IsString()
|
|
51
|
+
@Matches(/^\d{7,15}$/, { message: "phone must be 7-15 digits, no country code" })
|
|
52
|
+
phone!: string;
|
|
53
|
+
|
|
54
|
+
@IsEnum(RemittanceCountryISO)
|
|
55
|
+
countryISO!: RemittanceCountryISO;
|
|
56
|
+
|
|
57
|
+
@IsString()
|
|
58
|
+
@IsNotEmpty()
|
|
59
|
+
currencyISO!: string;
|
|
60
|
+
|
|
61
|
+
@IsEnum(ReceptionMethod)
|
|
62
|
+
receptionMethod!: ReceptionMethod;
|
|
63
|
+
|
|
64
|
+
@IsString()
|
|
65
|
+
@IsNotEmpty()
|
|
66
|
+
payerCode!: string;
|
|
67
|
+
|
|
68
|
+
/** Requerido si receptionMethod=ACCOUNT_CREDIT. Validado por regex del payer en el connector. */
|
|
69
|
+
@IsOptional()
|
|
70
|
+
@IsString()
|
|
71
|
+
accNumber?: string;
|
|
72
|
+
|
|
73
|
+
/** Requerido si payer.isPayerBranchRequired=YES. */
|
|
74
|
+
@IsOptional()
|
|
75
|
+
@IsString()
|
|
76
|
+
payerBranchCode?: string;
|
|
77
|
+
|
|
78
|
+
@ValidateNested()
|
|
79
|
+
@Type(() => RemittanceBeneficiaryAddressDTO)
|
|
80
|
+
address!: RemittanceBeneficiaryAddressDTO;
|
|
81
|
+
}
|
|
@@ -2,19 +2,39 @@ import { ReceptionMethod } from "../enums/ReceptionMethod";
|
|
|
2
2
|
import { RemittanceCountryISO } from "../enums/RemittanceCountryISO";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Beneficiary shape cross-lambda.
|
|
6
|
-
*
|
|
7
|
-
* (
|
|
5
|
+
* Beneficiary shape cross-lambda. Estado: `ACTIVE` o `DEACTIVATED`.
|
|
6
|
+
* `accNumberLastFour` se expone para display; el accNumber completo NUNCA
|
|
7
|
+
* sale del connector (PII / regulación). UNIR mantiene la fuente de verdad.
|
|
8
8
|
*/
|
|
9
|
+
|
|
10
|
+
export type RemittanceBeneficiaryStatus = "ACTIVE" | "DEACTIVATED";
|
|
11
|
+
|
|
12
|
+
export interface RemittanceBeneficiaryAddress {
|
|
13
|
+
address1: string;
|
|
14
|
+
address2?: string;
|
|
15
|
+
city: string;
|
|
16
|
+
state: string;
|
|
17
|
+
stateName?: string;
|
|
18
|
+
zipCode?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
9
21
|
export class RemittanceBeneficiary {
|
|
10
22
|
beneficiaryId!: string;
|
|
11
23
|
firstName!: string;
|
|
24
|
+
middleName?: string;
|
|
12
25
|
lastName!: string;
|
|
26
|
+
secondLastName?: string;
|
|
27
|
+
phone!: string;
|
|
13
28
|
countryISO!: RemittanceCountryISO;
|
|
14
29
|
currencyISO!: string;
|
|
15
30
|
receptionMethod!: ReceptionMethod;
|
|
16
31
|
payerCode!: string;
|
|
17
32
|
payerName!: string;
|
|
33
|
+
payerBranchCode?: string;
|
|
18
34
|
accNumberLastFour?: string;
|
|
35
|
+
address?: RemittanceBeneficiaryAddress;
|
|
36
|
+
status!: RemittanceBeneficiaryStatus;
|
|
19
37
|
lastUsedAt?: string;
|
|
38
|
+
createdAt!: string;
|
|
39
|
+
updatedAt!: string;
|
|
20
40
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IsOptional, IsString, Matches, ValidateNested } from "class-validator";
|
|
2
|
+
import { Type } from "class-transformer";
|
|
3
|
+
import { RemittanceBeneficiaryAddressDTO } from "./RemittanceAddBeneficiaryRequest";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* UNIR EditBeneficiary permite cambiar campos limitados: nickName, phone, address.
|
|
7
|
+
* NO permite cambiar firstName/lastName/payer/currency.
|
|
8
|
+
* Reflejamos esa restricción aquí — los campos no editables NO aparecen en la request.
|
|
9
|
+
*/
|
|
10
|
+
export class RemittanceUpdateBeneficiaryRequest {
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsString()
|
|
13
|
+
@Matches(/^\d{7,15}$/, { message: "phone must be 7-15 digits, no country code" })
|
|
14
|
+
phone?: string;
|
|
15
|
+
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@ValidateNested()
|
|
18
|
+
@Type(() => RemittanceBeneficiaryAddressDTO)
|
|
19
|
+
address?: RemittanceBeneficiaryAddressDTO;
|
|
20
|
+
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsString()
|
|
23
|
+
payerBranchCode?: string;
|
|
24
|
+
}
|
|
@@ -3,6 +3,9 @@ export * from "./RemittanceOnboardRequest";
|
|
|
3
3
|
export * from "./RemittanceOnboardResponse";
|
|
4
4
|
export * from "./RemittanceSecurityQuestionsResponse";
|
|
5
5
|
export * from "./RemittanceBeneficiary";
|
|
6
|
+
export * from "./RemittanceAddBeneficiaryRequest";
|
|
7
|
+
export * from "./RemittanceUpdateBeneficiaryRequest";
|
|
8
|
+
export * from "./RemittanceListBeneficiariesResponse";
|
|
6
9
|
export * from "./RemittanceTransaction";
|
|
7
10
|
export * from "./RemittanceLimitsInfo";
|
|
8
11
|
export * from "./RemittanceHomeResponse";
|
package/src/riskProfile/index.ts
CHANGED
|
@@ -22,24 +22,3 @@ export * from './enums/UserQuestionnaireStatusEnum';
|
|
|
22
22
|
export * from './enums/UserQuestionnaireQuestionAnswerEnum';
|
|
23
23
|
export * from './enums/UserQuestionnaireQuestionStatusEnum';
|
|
24
24
|
|
|
25
|
-
// Enums PLD privados
|
|
26
|
-
export * from './enums/CustomAlarmName';
|
|
27
|
-
export * from './enums/DictamenStatus';
|
|
28
|
-
export * from './enums/NotesMode';
|
|
29
|
-
|
|
30
|
-
// DTOs PLD privados — endpoints del PrivateController para Dashboard regulatorio
|
|
31
|
-
export * from './dtos/private/DictaminateAlertRequest';
|
|
32
|
-
export * from './dtos/private/DictaminateAlertResponse';
|
|
33
|
-
export * from './dtos/private/AppendAlertNoteRequest';
|
|
34
|
-
export * from './dtos/private/AppendAlertNoteResponse';
|
|
35
|
-
export * from './dtos/private/CreateBlockedListAlertRequest';
|
|
36
|
-
export * from './dtos/private/CreateBlockedListAlertResponse';
|
|
37
|
-
export * from './dtos/private/MarkAlertReportedRequest';
|
|
38
|
-
export * from './dtos/private/MarkAlertReportedResponse';
|
|
39
|
-
export * from './dtos/private/SetManualRiskLevelRequest';
|
|
40
|
-
export * from './dtos/private/SetManualRiskLevelResponse';
|
|
41
|
-
export * from './dtos/private/SetCustomAlarmRequest';
|
|
42
|
-
export * from './dtos/private/SetCustomAlarmResponse';
|
|
43
|
-
export * from './dtos/private/SetDeclaredIncomeRequest';
|
|
44
|
-
export * from './dtos/private/SetDeclaredIncomeResponse';
|
|
45
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InputSchemaOverrideRequest } from "./InputSchemaOverrideRequest";
|
|
2
|
-
/**
|
|
3
|
-
* Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
|
|
4
|
-
* - undefined → no se toca
|
|
5
|
-
* - string/number/boolean seteado → pisa el valor previo del override
|
|
6
|
-
* - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
|
|
7
|
-
*
|
|
8
|
-
* Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
|
|
9
|
-
*/
|
|
10
|
-
export declare class BackofficeLeafOverrideUpsertRequest {
|
|
11
|
-
serviceName?: string;
|
|
12
|
-
logo?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
helpText?: string;
|
|
15
|
-
serviceOrder?: number;
|
|
16
|
-
subcategoryOrder?: number;
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
category?: string;
|
|
19
|
-
subcategory?: string;
|
|
20
|
-
requiresReferenceVerification?: boolean;
|
|
21
|
-
inputSchema?: InputSchemaOverrideRequest;
|
|
22
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
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.BackofficeLeafOverrideUpsertRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const InputSchemaOverrideRequest_1 = require("./InputSchemaOverrideRequest");
|
|
16
|
-
/**
|
|
17
|
-
* Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
|
|
18
|
-
* - undefined → no se toca
|
|
19
|
-
* - string/number/boolean seteado → pisa el valor previo del override
|
|
20
|
-
* - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
|
|
21
|
-
*
|
|
22
|
-
* Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
|
|
23
|
-
*/
|
|
24
|
-
class BackofficeLeafOverrideUpsertRequest {
|
|
25
|
-
}
|
|
26
|
-
exports.BackofficeLeafOverrideUpsertRequest = BackofficeLeafOverrideUpsertRequest;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.MaxLength)(120),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "serviceName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
|
|
36
|
-
(0, class_validator_1.MaxLength)(500),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "logo", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
(0, class_validator_1.MaxLength)(2000),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "description", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0, class_validator_1.MaxLength)(1000),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "helpText", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
(0, class_validator_1.IsInt)(),
|
|
54
|
-
(0, class_validator_1.Min)(0),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "serviceOrder", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsInt)(),
|
|
60
|
-
(0, class_validator_1.Min)(0),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "subcategoryOrder", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_validator_1.IsBoolean)(),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "enabled", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
(0, class_validator_1.IsString)(),
|
|
71
|
-
(0, class_validator_1.MaxLength)(60),
|
|
72
|
-
(0, class_validator_1.Matches)(/^[A-Z][A-Z0-9_ ]*$/, { message: "category must be uppercase with underscores or spaces" }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "category", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.IsString)(),
|
|
78
|
-
(0, class_validator_1.MaxLength)(60),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "subcategory", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, class_validator_1.IsOptional)(),
|
|
83
|
-
(0, class_validator_1.IsBoolean)(),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "requiresReferenceVerification", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_validator_1.IsOptional)(),
|
|
88
|
-
(0, class_validator_1.ValidateNested)(),
|
|
89
|
-
(0, class_transformer_1.Type)(() => InputSchemaOverrideRequest_1.InputSchemaOverrideRequest),
|
|
90
|
-
__metadata("design:type", InputSchemaOverrideRequest_1.InputSchemaOverrideRequest)
|
|
91
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "inputSchema", void 0);
|