@fiado/type-kit 3.11.0 → 3.13.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/benefitCenter/dtos/AuthorizeBenefitsMarketplaceTransactionRequest.d.ts +25 -1
- package/bin/benefitCenter/dtos/AuthorizeBenefitsMarketplaceTransactionRequest.js +14 -2
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/index.d.ts +1 -0
- package/bin/index.js +9 -18
- package/bin/milestone-business/dtos/MilestonesByEventKeyDateRangeParams.d.ts +9 -0
- package/bin/milestone-business/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/benefitCenter/dtos/AuthorizeBenefitsMarketplaceTransactionRequest.ts +41 -4
- package/src/index.ts +1 -0
- package/src/milestone-business/dtos/MilestonesByEventKeyDateRangeParams.ts +9 -0
- package/src/milestone-business/index.ts +2 -0
- 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/GenerateReportResponse.d.ts +0 -6
- 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/{comission-business/dtos/GenerateReportRequest.js → milestone-business/dtos/MilestonesByEventKeyDateRangeParams.js} +0 -0
- /package/bin/{comission-business/dtos/GenerateReportResponse.js → milestone-business/index.js} +0 -0
|
@@ -15,6 +15,12 @@ export declare class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
|
15
15
|
* Reusa entradas existentes en `ProductCatalog_GT` del procesador
|
|
16
16
|
* (`MEX_TOPUP`, `MEX_SERVICE_PAYMENT`, …). No se agregan entradas nuevas
|
|
17
17
|
* en Fase 2 (ver doc §10).
|
|
18
|
+
*
|
|
19
|
+
* El factory dinámico `TransactionProcessorFactory.getMarketplaceInstance`
|
|
20
|
+
* deriva el token del binding desde aquí (`MEX_<X>` →
|
|
21
|
+
* `BenefitsMarketplace<X>TransactionService`). La regex impone el contrato
|
|
22
|
+
* y permite que el factory falle con 400 en lugar de 500 si llega algo
|
|
23
|
+
* fuera de la convención.
|
|
18
24
|
*/
|
|
19
25
|
productCatalogId: string;
|
|
20
26
|
/**
|
|
@@ -28,14 +34,32 @@ export declare class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
|
28
34
|
* debe generar `transactionNumber` — por eso este DTO no lo expone.
|
|
29
35
|
*/
|
|
30
36
|
idempotencyKey: string;
|
|
37
|
+
/**
|
|
38
|
+
* Monto en unidad mayor de la moneda (no centavos). Como mucho 2 decimales.
|
|
39
|
+
* El `Max` cap es defensivo — atrapa errores obvios (montos absurdos por
|
|
40
|
+
* bugs de UI) sin restringir casos legítimos. Ajustar si la operatoria
|
|
41
|
+
* requiere techos mayores.
|
|
42
|
+
*/
|
|
31
43
|
amount: number;
|
|
32
44
|
/** ISO numeric (3 chars). Ej: "484" (MXN), "840" (USD). */
|
|
33
45
|
currencyId: string;
|
|
34
46
|
benefitId: string;
|
|
47
|
+
/**
|
|
48
|
+
* `leafId = base64url("<moduleName>::<idServicio>")`. Convención
|
|
49
|
+
* cross-componente del Centro (ver
|
|
50
|
+
* `docs/favorites/05b-favoritos-ligados-a-producto.md`). La regex
|
|
51
|
+
* enforce el charset base64url sin tener que decodificar acá.
|
|
52
|
+
*/
|
|
35
53
|
leafId: string;
|
|
36
54
|
productId: string;
|
|
37
55
|
reference: string;
|
|
38
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Decide a qué conector apuntar dentro del marketplace. Va concatenado
|
|
58
|
+
* a la URL `POST /pay/{moduleName}` del marketplace privado. La regex
|
|
59
|
+
* restringe a charset seguro (kebab-case minúsculas), previene
|
|
60
|
+
* inyecciones de path y matchea la convención de naming de los
|
|
61
|
+
* lambdas Fiado.
|
|
62
|
+
*/
|
|
39
63
|
moduleName: string;
|
|
40
64
|
/** Inputs dinámicos del leaf — opcionales según el servicio. */
|
|
41
65
|
inputs?: Record<string, string | number | boolean>;
|
|
@@ -30,6 +30,9 @@ __decorate([
|
|
|
30
30
|
(0, class_validator_1.IsString)(),
|
|
31
31
|
(0, class_validator_1.IsNotEmpty)(),
|
|
32
32
|
(0, class_validator_1.MaxLength)(64),
|
|
33
|
+
(0, class_validator_1.Matches)(/^MEX_[A-Z][A-Z_]*$/, {
|
|
34
|
+
message: "productCatalogId debe seguir el formato MEX_<UPPER_SNAKE>",
|
|
35
|
+
}),
|
|
33
36
|
__metadata("design:type", String)
|
|
34
37
|
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "productCatalogId", void 0);
|
|
35
38
|
__decorate([
|
|
@@ -39,13 +42,16 @@ __decorate([
|
|
|
39
42
|
__metadata("design:type", String)
|
|
40
43
|
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "idempotencyKey", void 0);
|
|
41
44
|
__decorate([
|
|
42
|
-
(0, class_validator_1.IsNumber)(),
|
|
45
|
+
(0, class_validator_1.IsNumber)({ maxDecimalPlaces: 2 }),
|
|
43
46
|
(0, class_validator_1.IsPositive)(),
|
|
47
|
+
(0, class_validator_1.Max)(1000000),
|
|
44
48
|
__metadata("design:type", Number)
|
|
45
49
|
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "amount", void 0);
|
|
46
50
|
__decorate([
|
|
47
51
|
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0, class_validator_1.
|
|
52
|
+
(0, class_validator_1.Matches)(/^\d{3}$/, {
|
|
53
|
+
message: "currencyId debe ser ISO numérico de 3 dígitos",
|
|
54
|
+
}),
|
|
49
55
|
__metadata("design:type", String)
|
|
50
56
|
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "currencyId", void 0);
|
|
51
57
|
__decorate([
|
|
@@ -58,6 +64,9 @@ __decorate([
|
|
|
58
64
|
(0, class_validator_1.IsString)(),
|
|
59
65
|
(0, class_validator_1.IsNotEmpty)(),
|
|
60
66
|
(0, class_validator_1.MaxLength)(256),
|
|
67
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]+$/, {
|
|
68
|
+
message: "leafId debe estar codificado en base64url (charset A-Za-z0-9_-)",
|
|
69
|
+
}),
|
|
61
70
|
__metadata("design:type", String)
|
|
62
71
|
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "leafId", void 0);
|
|
63
72
|
__decorate([
|
|
@@ -76,6 +85,9 @@ __decorate([
|
|
|
76
85
|
(0, class_validator_1.IsString)(),
|
|
77
86
|
(0, class_validator_1.IsNotEmpty)(),
|
|
78
87
|
(0, class_validator_1.MaxLength)(128),
|
|
88
|
+
(0, class_validator_1.Matches)(/^[a-z][a-z0-9-]*$/, {
|
|
89
|
+
message: "moduleName debe ser kebab-case minúsculas",
|
|
90
|
+
}),
|
|
79
91
|
__metadata("design:type", String)
|
|
80
92
|
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "moduleName", void 0);
|
|
81
93
|
__decorate([
|
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
10
|
-
exports.IsValueValid = IsValueValid;
|
|
9
|
+
exports.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
11
10
|
const class_validator_1 = require("class-validator");
|
|
12
11
|
const Status_1 = require("../enums/Status");
|
|
13
12
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -71,3 +70,4 @@ function IsValueValid(validationOptions) {
|
|
|
71
70
|
});
|
|
72
71
|
};
|
|
73
72
|
}
|
|
73
|
+
exports.IsValueValid = IsValueValid;
|
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
9
|
+
exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
|
|
11
10
|
const class_validator_1 = require("class-validator");
|
|
12
11
|
const regex_1 = require("../../helpers/constans/regex");
|
|
13
12
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -37,3 +36,4 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
37
36
|
});
|
|
38
37
|
};
|
|
39
38
|
}
|
|
39
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -15,26 +15,16 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
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.CirculoCredito = exports.CreditStatements = 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;
|
|
27
|
+
exports.MilestoneBusiness = exports.CirculoCredito = exports.CreditStatements = 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
28
|
exports.Crypto = __importStar(require("./crypto"));
|
|
39
29
|
exports.Account = __importStar(require("./account"));
|
|
40
30
|
exports.Activity = __importStar(require("./activity"));
|
|
@@ -107,3 +97,4 @@ exports.AiEngine = __importStar(require("./aiEngine"));
|
|
|
107
97
|
exports.Sentry = __importStar(require("./sentry"));
|
|
108
98
|
exports.CreditStatements = __importStar(require("./credit-statements"));
|
|
109
99
|
exports.CirculoCredito = __importStar(require("./circuloCredito"));
|
|
100
|
+
exports.MilestoneBusiness = __importStar(require("./milestone-business"));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface MilestonesByEventKeyDateRangeParams {
|
|
2
|
+
/** Inicio del rango de eventDate. Acepta epoch ms o ISO/yyyy-mm-dd. */
|
|
3
|
+
startDate: string | number;
|
|
4
|
+
/** Fin del rango de eventDate. Acepta epoch ms o ISO/yyyy-mm-dd. */
|
|
5
|
+
endDate: string | number;
|
|
6
|
+
pageSize?: number | string;
|
|
7
|
+
index?: string;
|
|
8
|
+
sort?: 'ascending' | 'descending';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MilestonesByEventKeyDateRangeParams } from "./dtos/MilestonesByEventKeyDateRangeParams";
|
package/package.json
CHANGED
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
IsOptional,
|
|
8
8
|
IsPositive,
|
|
9
9
|
IsString,
|
|
10
|
-
|
|
10
|
+
Matches,
|
|
11
|
+
Max,
|
|
11
12
|
MaxLength,
|
|
12
13
|
} from "class-validator";
|
|
13
14
|
|
|
@@ -28,10 +29,19 @@ export class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
|
28
29
|
* Reusa entradas existentes en `ProductCatalog_GT` del procesador
|
|
29
30
|
* (`MEX_TOPUP`, `MEX_SERVICE_PAYMENT`, …). No se agregan entradas nuevas
|
|
30
31
|
* en Fase 2 (ver doc §10).
|
|
32
|
+
*
|
|
33
|
+
* El factory dinámico `TransactionProcessorFactory.getMarketplaceInstance`
|
|
34
|
+
* deriva el token del binding desde aquí (`MEX_<X>` →
|
|
35
|
+
* `BenefitsMarketplace<X>TransactionService`). La regex impone el contrato
|
|
36
|
+
* y permite que el factory falle con 400 en lugar de 500 si llega algo
|
|
37
|
+
* fuera de la convención.
|
|
31
38
|
*/
|
|
32
39
|
@IsString()
|
|
33
40
|
@IsNotEmpty()
|
|
34
41
|
@MaxLength(64)
|
|
42
|
+
@Matches(/^MEX_[A-Z][A-Z_]*$/, {
|
|
43
|
+
message: "productCatalogId debe seguir el formato MEX_<UPPER_SNAKE>",
|
|
44
|
+
})
|
|
35
45
|
productCatalogId!: string;
|
|
36
46
|
|
|
37
47
|
/**
|
|
@@ -49,13 +59,22 @@ export class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
|
49
59
|
@MaxLength(64)
|
|
50
60
|
idempotencyKey!: string;
|
|
51
61
|
|
|
52
|
-
|
|
62
|
+
/**
|
|
63
|
+
* Monto en unidad mayor de la moneda (no centavos). Como mucho 2 decimales.
|
|
64
|
+
* El `Max` cap es defensivo — atrapa errores obvios (montos absurdos por
|
|
65
|
+
* bugs de UI) sin restringir casos legítimos. Ajustar si la operatoria
|
|
66
|
+
* requiere techos mayores.
|
|
67
|
+
*/
|
|
68
|
+
@IsNumber({maxDecimalPlaces: 2})
|
|
53
69
|
@IsPositive()
|
|
70
|
+
@Max(1_000_000)
|
|
54
71
|
amount!: number;
|
|
55
72
|
|
|
56
73
|
/** ISO numeric (3 chars). Ej: "484" (MXN), "840" (USD). */
|
|
57
74
|
@IsString()
|
|
58
|
-
@
|
|
75
|
+
@Matches(/^\d{3}$/, {
|
|
76
|
+
message: "currencyId debe ser ISO numérico de 3 dígitos",
|
|
77
|
+
})
|
|
59
78
|
currencyId!: string;
|
|
60
79
|
|
|
61
80
|
// Campos del Centro de Beneficios — first-class, no opcionales
|
|
@@ -65,9 +84,18 @@ export class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
|
65
84
|
@MaxLength(64)
|
|
66
85
|
benefitId!: string;
|
|
67
86
|
|
|
87
|
+
/**
|
|
88
|
+
* `leafId = base64url("<moduleName>::<idServicio>")`. Convención
|
|
89
|
+
* cross-componente del Centro (ver
|
|
90
|
+
* `docs/favorites/05b-favoritos-ligados-a-producto.md`). La regex
|
|
91
|
+
* enforce el charset base64url sin tener que decodificar acá.
|
|
92
|
+
*/
|
|
68
93
|
@IsString()
|
|
69
94
|
@IsNotEmpty()
|
|
70
95
|
@MaxLength(256)
|
|
96
|
+
@Matches(/^[A-Za-z0-9_-]+$/, {
|
|
97
|
+
message: "leafId debe estar codificado en base64url (charset A-Za-z0-9_-)",
|
|
98
|
+
})
|
|
71
99
|
leafId!: string;
|
|
72
100
|
|
|
73
101
|
@IsString()
|
|
@@ -80,10 +108,19 @@ export class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
|
80
108
|
@MaxLength(128)
|
|
81
109
|
reference!: string;
|
|
82
110
|
|
|
83
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* Decide a qué conector apuntar dentro del marketplace. Va concatenado
|
|
113
|
+
* a la URL `POST /pay/{moduleName}` del marketplace privado. La regex
|
|
114
|
+
* restringe a charset seguro (kebab-case minúsculas), previene
|
|
115
|
+
* inyecciones de path y matchea la convención de naming de los
|
|
116
|
+
* lambdas Fiado.
|
|
117
|
+
*/
|
|
84
118
|
@IsString()
|
|
85
119
|
@IsNotEmpty()
|
|
86
120
|
@MaxLength(128)
|
|
121
|
+
@Matches(/^[a-z][a-z0-9-]*$/, {
|
|
122
|
+
message: "moduleName debe ser kebab-case minúsculas",
|
|
123
|
+
})
|
|
87
124
|
moduleName!: string;
|
|
88
125
|
|
|
89
126
|
/** Inputs dinámicos del leaf — opcionales según el servicio. */
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface MilestonesByEventKeyDateRangeParams {
|
|
2
|
+
/** Inicio del rango de eventDate. Acepta epoch ms o ISO/yyyy-mm-dd. */
|
|
3
|
+
startDate: string | number;
|
|
4
|
+
/** Fin del rango de eventDate. Acepta epoch ms o ISO/yyyy-mm-dd. */
|
|
5
|
+
endDate: string | number;
|
|
6
|
+
pageSize?: number | string;
|
|
7
|
+
index?: string;
|
|
8
|
+
sort?: 'ascending' | 'descending';
|
|
9
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class SignUpBackofficeRequest {
|
|
2
|
-
name: string;
|
|
3
|
-
phoneNumber: string;
|
|
4
|
-
countryOfBirth: string;
|
|
5
|
-
MEX_DebitAccountWish: boolean;
|
|
6
|
-
USA_DebitAccountWish: boolean;
|
|
7
|
-
countryOfDomicile: string;
|
|
8
|
-
myReferralCode?: string;
|
|
9
|
-
referralCode?: string;
|
|
10
|
-
groupId?: string;
|
|
11
|
-
isAgent: boolean;
|
|
12
|
-
agentGroupId?: string;
|
|
13
|
-
}
|
|
@@ -1,71 +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.SignUpBackofficeRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class SignUpBackofficeRequest {
|
|
15
|
-
}
|
|
16
|
-
exports.SignUpBackofficeRequest = SignUpBackofficeRequest;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], SignUpBackofficeRequest.prototype, "name", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], SignUpBackofficeRequest.prototype, "phoneNumber", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], SignUpBackofficeRequest.prototype, "countryOfBirth", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsBoolean)(),
|
|
34
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
-
__metadata("design:type", Boolean)
|
|
36
|
-
], SignUpBackofficeRequest.prototype, "MEX_DebitAccountWish", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsBoolean)(),
|
|
39
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
-
__metadata("design:type", Boolean)
|
|
41
|
-
], SignUpBackofficeRequest.prototype, "USA_DebitAccountWish", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], SignUpBackofficeRequest.prototype, "countryOfDomicile", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsString)(),
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], SignUpBackofficeRequest.prototype, "myReferralCode", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsString)(),
|
|
54
|
-
(0, class_validator_1.IsOptional)(),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], SignUpBackofficeRequest.prototype, "referralCode", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsString)(),
|
|
59
|
-
(0, class_validator_1.IsOptional)(),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], SignUpBackofficeRequest.prototype, "groupId", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsBoolean)(),
|
|
64
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
65
|
-
__metadata("design:type", Boolean)
|
|
66
|
-
], SignUpBackofficeRequest.prototype, "isAgent", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, class_validator_1.IsString)(),
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], SignUpBackofficeRequest.prototype, "agentGroupId", void 0);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CountryId } from "../../country";
|
|
2
|
-
import { ReportConceptEnum } from "../enums/ReportConceptEnum";
|
|
3
|
-
export interface GenerateReportRequest {
|
|
4
|
-
dateFrom: string;
|
|
5
|
-
dateTo: string;
|
|
6
|
-
groupId?: string;
|
|
7
|
-
currency: CountryId;
|
|
8
|
-
amountPerReferral: number;
|
|
9
|
-
concept: ReportConceptEnum;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentStatusEnum = void 0;
|
|
4
|
-
var PaymentStatusEnum;
|
|
5
|
-
(function (PaymentStatusEnum) {
|
|
6
|
-
PaymentStatusEnum["PENDING"] = "PENDING";
|
|
7
|
-
PaymentStatusEnum["PAID"] = "PAID";
|
|
8
|
-
PaymentStatusEnum["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
9
|
-
})(PaymentStatusEnum || (exports.PaymentStatusEnum = PaymentStatusEnum = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OfferStatusEnum } from "../enums/OfferStatusEnum";
|
|
2
|
-
import { CreditStatusEnum } from "../enums/CreditStatusEnum";
|
|
3
|
-
export declare class CreditBannerStateResponse {
|
|
4
|
-
showBanner: boolean;
|
|
5
|
-
bannerType: 'NURTURING' | 'OFFER_AVAILABLE' | 'ACTIVE_CREDIT' | 'NONE';
|
|
6
|
-
offerStatus: OfferStatusEnum | null;
|
|
7
|
-
creditStatus: CreditStatusEnum | null;
|
|
8
|
-
message: string | null;
|
|
9
|
-
maxOfferAmount: number | null;
|
|
10
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CreditStatusEnum } from "../enums/CreditStatusEnum";
|
|
2
|
-
import { DelinquencyLevelEnum } from "../enums/DelinquencyLevelEnum";
|
|
3
|
-
import { CollectionFrequencyEnum } from "../enums/CollectionFrequencyEnum";
|
|
4
|
-
export declare class CreditDetailResponse {
|
|
5
|
-
creditId: string;
|
|
6
|
-
status: CreditStatusEnum;
|
|
7
|
-
delinquencyLevel: DelinquencyLevelEnum;
|
|
8
|
-
originalAmount: number;
|
|
9
|
-
currentBalance: number;
|
|
10
|
-
paidAmount: number;
|
|
11
|
-
nextPaymentAmount: number;
|
|
12
|
-
nextPaymentDate: string;
|
|
13
|
-
overdueDays: number;
|
|
14
|
-
overdueAmount: number;
|
|
15
|
-
termWeeks: number;
|
|
16
|
-
currentWeek: number;
|
|
17
|
-
frequency: CollectionFrequencyEnum;
|
|
18
|
-
annualInterestRate: number;
|
|
19
|
-
cat: number;
|
|
20
|
-
disbursementDate: string;
|
|
21
|
-
maturityDate: string;
|
|
22
|
-
contractDocumentId: string;
|
|
23
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OfferStatusEnum } from "../enums/OfferStatusEnum";
|
|
2
|
-
export declare class CreditEligibilityResponse {
|
|
3
|
-
eligible: boolean;
|
|
4
|
-
status: OfferStatusEnum;
|
|
5
|
-
maxAmount: number | null;
|
|
6
|
-
minAmount: number | null;
|
|
7
|
-
reason: string | null;
|
|
8
|
-
expiresAt: string | null;
|
|
9
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CreditOperationEnum } from "../enums/CreditOperationEnum";
|
|
2
|
-
export declare class CreditMovementItem {
|
|
3
|
-
movementId: string;
|
|
4
|
-
date: string;
|
|
5
|
-
type: CreditOperationEnum;
|
|
6
|
-
description: string;
|
|
7
|
-
amount: number;
|
|
8
|
-
principal: number;
|
|
9
|
-
interest: number;
|
|
10
|
-
iva: number;
|
|
11
|
-
balance: number;
|
|
12
|
-
}
|
|
13
|
-
export declare class CreditMovementResponse {
|
|
14
|
-
creditId: string;
|
|
15
|
-
movements: CreditMovementItem[];
|
|
16
|
-
pagination: {
|
|
17
|
-
lastKey: string | null;
|
|
18
|
-
hasMore: boolean;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreditMovementResponse = exports.CreditMovementItem = void 0;
|
|
4
|
-
class CreditMovementItem {
|
|
5
|
-
}
|
|
6
|
-
exports.CreditMovementItem = CreditMovementItem;
|
|
7
|
-
class CreditMovementResponse {
|
|
8
|
-
}
|
|
9
|
-
exports.CreditMovementResponse = CreditMovementResponse;
|
|
@@ -1,26 +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.CreditRequestCreate = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CreditRequestCreate {
|
|
15
|
-
}
|
|
16
|
-
exports.CreditRequestCreate = CreditRequestCreate;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CreditRequestCreate.prototype, "offerId", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], CreditRequestCreate.prototype, "acceptedTerms", void 0);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare class ScheduleItem {
|
|
2
|
-
couponNumber: number;
|
|
3
|
-
dueDate: string;
|
|
4
|
-
principal: number;
|
|
5
|
-
interest: number;
|
|
6
|
-
iva: number;
|
|
7
|
-
payment: number;
|
|
8
|
-
balance: number;
|
|
9
|
-
status: 'PENDING' | 'PAID' | 'OVERDUE' | 'PARTIAL';
|
|
10
|
-
paidDate: string | null;
|
|
11
|
-
paidAmount: number | null;
|
|
12
|
-
}
|
|
13
|
-
export declare class CreditScheduleResponse {
|
|
14
|
-
creditId: string;
|
|
15
|
-
schedule: ScheduleItem[];
|
|
16
|
-
totalPaid: number;
|
|
17
|
-
totalRemaining: number;
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreditScheduleResponse = exports.ScheduleItem = void 0;
|
|
4
|
-
class ScheduleItem {
|
|
5
|
-
}
|
|
6
|
-
exports.ScheduleItem = ScheduleItem;
|
|
7
|
-
class CreditScheduleResponse {
|
|
8
|
-
}
|
|
9
|
-
exports.CreditScheduleResponse = CreditScheduleResponse;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class CreditStatementItem {
|
|
2
|
-
statementId: string;
|
|
3
|
-
period: string;
|
|
4
|
-
generatedAt: string;
|
|
5
|
-
documentId: string;
|
|
6
|
-
downloadUrl: string | null;
|
|
7
|
-
}
|
|
8
|
-
export declare class CreditStatementListResponse {
|
|
9
|
-
creditId: string;
|
|
10
|
-
statements: CreditStatementItem[];
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreditStatementListResponse = exports.CreditStatementItem = void 0;
|
|
4
|
-
class CreditStatementItem {
|
|
5
|
-
}
|
|
6
|
-
exports.CreditStatementItem = CreditStatementItem;
|
|
7
|
-
class CreditStatementListResponse {
|
|
8
|
-
}
|
|
9
|
-
exports.CreditStatementListResponse = CreditStatementListResponse;
|