@fiado/type-kit 3.42.0 → 3.44.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/_test_/unit/platformRbac/auth/dtos.test.ts +42 -0
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +22 -0
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +91 -0
- package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +19 -0
- package/bin/benefitCenter/dtos/FieldOverrideRequest.js +80 -0
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +9 -0
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +29 -0
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +10 -0
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +14 -0
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +13 -0
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +71 -0
- package/bin/comission-business/dtos/GenerateReportRequest.d.ts +10 -0
- package/bin/comission-business/dtos/GenerateReportRequest.js +2 -0
- package/bin/comission-business/dtos/GenerateReportResponse.d.ts +6 -0
- package/bin/comission-business/dtos/GenerateReportResponse.js +2 -0
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +5 -0
- package/bin/comission-business/enums/PaymentStatusEnum.js +9 -0
- package/bin/credit/dtos/CreditBannerStateResponse.d.ts +10 -0
- package/bin/credit/dtos/CreditBannerStateResponse.js +6 -0
- package/bin/credit/dtos/CreditDetailResponse.d.ts +23 -0
- package/bin/credit/dtos/CreditDetailResponse.js +6 -0
- package/bin/credit/dtos/CreditEligibilityResponse.d.ts +9 -0
- package/bin/credit/dtos/CreditEligibilityResponse.js +6 -0
- package/bin/credit/dtos/CreditMovementResponse.d.ts +20 -0
- package/bin/credit/dtos/CreditMovementResponse.js +9 -0
- package/bin/credit/dtos/CreditRequestCreate.d.ts +4 -0
- package/bin/credit/dtos/CreditRequestCreate.js +26 -0
- package/bin/credit/dtos/CreditRequestResponse.d.ts +7 -0
- package/bin/credit/dtos/CreditRequestResponse.js +6 -0
- package/bin/credit/dtos/CreditScheduleResponse.d.ts +18 -0
- package/bin/credit/dtos/CreditScheduleResponse.js +9 -0
- package/bin/credit/dtos/CreditStatementResponse.d.ts +11 -0
- package/bin/credit/dtos/CreditStatementResponse.js +9 -0
- package/bin/credit/dtos/EarlyPaymentRequest.d.ts +7 -0
- package/bin/credit/dtos/EarlyPaymentRequest.js +37 -0
- package/bin/credit/dtos/EarlyPaymentResponse.d.ts +11 -0
- package/bin/credit/dtos/EarlyPaymentResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/CreditBalanceRequest.js +21 -0
- package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +11 -0
- package/bin/credit/dtos/internal/CreditCollectionRequest.js +59 -0
- package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +12 -0
- package/bin/credit/dtos/internal/CreditCollectionResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +7 -0
- package/bin/credit/dtos/internal/CreditDisbursementRequest.js +43 -0
- package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditDisbursementResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/CreditProfileRequest.js +23 -0
- package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +5 -0
- package/bin/credit/dtos/internal/CreditReversalRequest.js +31 -0
- package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +7 -0
- package/bin/credit/dtos/internal/CreditReversalResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +46 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +6 -0
- package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/DocumentSignRequest.js +21 -0
- package/bin/credit/dtos/internal/LienApplyRequest.d.ts +7 -0
- package/bin/credit/dtos/internal/LienApplyRequest.js +45 -0
- package/bin/credit/enums/CollectionFrequencyEnum.d.ts +5 -0
- package/bin/credit/enums/CollectionFrequencyEnum.js +9 -0
- package/bin/credit/enums/CreditOperationEnum.d.ts +11 -0
- package/bin/credit/enums/CreditOperationEnum.js +15 -0
- package/bin/credit/enums/CreditStatusEnum.d.ts +12 -0
- package/bin/credit/enums/CreditStatusEnum.js +16 -0
- package/bin/credit/enums/DelinquencyLevelEnum.d.ts +9 -0
- package/bin/credit/enums/DelinquencyLevelEnum.js +13 -0
- package/bin/credit/enums/DocumentTypeEnum.d.ts +8 -0
- package/bin/credit/enums/DocumentTypeEnum.js +12 -0
- package/bin/credit/enums/OfferStatusEnum.d.ts +8 -0
- package/bin/credit/enums/OfferStatusEnum.js +12 -0
- package/bin/credit/enums/PaymentTypeEnum.d.ts +9 -0
- package/bin/credit/enums/PaymentTypeEnum.js +13 -0
- package/bin/credit/enums/ReconciliationStatusEnum.d.ts +6 -0
- package/bin/credit/enums/ReconciliationStatusEnum.js +10 -0
- package/bin/credit/enums/TransferStatusEnum.d.ts +8 -0
- package/bin/credit/enums/TransferStatusEnum.js +12 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/platformRbac/auth/DefineNextChallengeRequest.d.ts +11 -0
- package/bin/platformRbac/auth/DefineNextChallengeRequest.js +44 -0
- package/bin/platformRbac/auth/DefineNextChallengeResponse.d.ts +6 -0
- package/bin/platformRbac/auth/DefineNextChallengeResponse.js +30 -0
- package/bin/platformRbac/auth/NewPasswordRequest.d.ts +4 -0
- package/bin/platformRbac/auth/NewPasswordRequest.js +25 -0
- package/bin/platformRbac/auth/PrepareChallengeRequest.d.ts +6 -0
- package/bin/platformRbac/auth/PrepareChallengeRequest.js +29 -0
- package/bin/platformRbac/auth/PrepareChallengeResponse.d.ts +4 -0
- package/bin/platformRbac/auth/PrepareChallengeResponse.js +24 -0
- package/bin/platformRbac/auth/ResetPasswordRequest.d.ts +5 -0
- package/bin/platformRbac/auth/ResetPasswordRequest.js +30 -0
- package/bin/platformRbac/auth/VerifyChallengeRequest.d.ts +7 -0
- package/bin/platformRbac/auth/VerifyChallengeRequest.js +33 -0
- package/bin/platformRbac/auth/VerifyChallengeResponse.d.ts +3 -0
- package/bin/platformRbac/auth/VerifyChallengeResponse.js +20 -0
- package/bin/platformRbac/enums/ChallengeNameEnum.d.ts +7 -0
- package/bin/platformRbac/enums/ChallengeNameEnum.js +11 -0
- package/bin/platformRbac/enums/MfaMethodEnum.d.ts +4 -0
- package/bin/platformRbac/enums/MfaMethodEnum.js +8 -0
- package/bin/platformRbac/index.d.ts +14 -0
- package/bin/platformRbac/index.js +30 -0
- package/bin/platformRbac/mfa/ChangeMfaMethodRequest.d.ts +5 -0
- package/bin/platformRbac/mfa/ChangeMfaMethodRequest.js +25 -0
- package/bin/platformRbac/mfa/EnrollTotpResponse.d.ts +5 -0
- package/bin/platformRbac/mfa/EnrollTotpResponse.js +28 -0
- package/bin/platformRbac/mfa/MfaStatusResponse.d.ts +6 -0
- package/bin/platformRbac/mfa/MfaStatusResponse.js +30 -0
- package/bin/platformRbac/mfa/VerifyTotpEnrollmentRequest.d.ts +3 -0
- package/bin/platformRbac/mfa/VerifyTotpEnrollmentRequest.js +21 -0
- package/bin/walletFunding/dtos/AuthorizeWalletFundingRequest.d.ts +13 -0
- package/bin/walletFunding/dtos/AuthorizeWalletFundingRequest.js +63 -0
- package/bin/walletFunding/dtos/AuthorizeWalletFundingResponse.d.ts +10 -0
- package/bin/walletFunding/dtos/AuthorizeWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +5 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +31 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +6 -0
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +3 -0
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +21 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/CreateFundingReferenceRequest.d.ts +13 -0
- package/bin/walletFunding/dtos/CreateFundingReferenceRequest.js +65 -0
- package/bin/walletFunding/dtos/CreateFundingReferenceResponse.d.ts +10 -0
- package/bin/walletFunding/dtos/CreateFundingReferenceResponse.js +6 -0
- package/bin/walletFunding/dtos/CreditWalletFundingRequest.d.ts +10 -0
- package/bin/walletFunding/dtos/CreditWalletFundingRequest.js +55 -0
- package/bin/walletFunding/dtos/CreditWalletFundingResponse.d.ts +8 -0
- package/bin/walletFunding/dtos/CreditWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/FundingProviderReferenceData.d.ts +12 -0
- package/bin/walletFunding/dtos/FundingProviderReferenceData.js +9 -0
- package/bin/walletFunding/dtos/ListFundingReferencesRequest.d.ts +5 -0
- package/bin/walletFunding/dtos/ListFundingReferencesRequest.js +27 -0
- package/bin/walletFunding/dtos/ListFundingReferencesResponse.d.ts +4 -0
- package/bin/walletFunding/dtos/ListFundingReferencesResponse.js +6 -0
- package/bin/walletFunding/dtos/ListWalletFundingReferencesRequest.d.ts +6 -0
- package/bin/walletFunding/dtos/ListWalletFundingReferencesRequest.js +28 -0
- package/bin/walletFunding/dtos/ListWalletFundingReferencesResponse.d.ts +16 -0
- package/bin/walletFunding/dtos/ListWalletFundingReferencesResponse.js +9 -0
- package/bin/walletFunding/dtos/ReverseWalletFundingRequest.d.ts +9 -0
- package/bin/walletFunding/dtos/ReverseWalletFundingRequest.js +51 -0
- package/bin/walletFunding/dtos/ReverseWalletFundingResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/ReverseWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingRequest.d.ts +9 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingRequest.js +51 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingResponse.d.ts +6 -0
- package/bin/walletFunding/dtos/ValidateWalletFundingResponse.js +6 -0
- package/bin/walletFunding/dtos/index.d.ts +19 -0
- package/bin/walletFunding/dtos/index.js +35 -0
- package/bin/walletFunding/enums/FundingMethodEnum.d.ts +3 -0
- package/bin/walletFunding/enums/FundingMethodEnum.js +7 -0
- package/bin/walletFunding/enums/WalletFundingErrorCodeEnum.d.ts +16 -0
- package/bin/walletFunding/enums/WalletFundingErrorCodeEnum.js +20 -0
- package/bin/walletFunding/enums/WalletFundingModeEnum.d.ts +4 -0
- package/bin/walletFunding/enums/WalletFundingModeEnum.js +8 -0
- package/bin/walletFunding/enums/WalletFundingPaymentStatusEnum.d.ts +6 -0
- package/bin/walletFunding/enums/WalletFundingPaymentStatusEnum.js +10 -0
- package/bin/walletFunding/enums/WalletFundingReferenceStatusEnum.d.ts +6 -0
- package/bin/walletFunding/enums/WalletFundingReferenceStatusEnum.js +10 -0
- package/bin/walletFunding/enums/WalletFundingRefundReasonEnum.d.ts +8 -0
- package/bin/walletFunding/enums/WalletFundingRefundReasonEnum.js +12 -0
- package/bin/walletFunding/enums/index.d.ts +6 -0
- package/bin/walletFunding/enums/index.js +22 -0
- package/bin/walletFunding/index.d.ts +2 -0
- package/bin/{rbac → walletFunding}/index.js +2 -1
- package/docs/superpowers/plans/2026-05-22-http-client-inversify-v8.md +243 -0
- package/docs/superpowers/specs/2026-05-22-inversify-v8-migration-design.md +191 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/platformRbac/auth/DefineNextChallengeRequest.ts +25 -0
- package/src/platformRbac/auth/DefineNextChallengeResponse.ts +14 -0
- package/src/platformRbac/auth/NewPasswordRequest.ts +10 -0
- package/src/platformRbac/auth/PrepareChallengeRequest.ts +13 -0
- package/src/platformRbac/auth/PrepareChallengeResponse.ts +9 -0
- package/src/platformRbac/auth/ResetPasswordRequest.ts +14 -0
- package/src/platformRbac/auth/VerifyChallengeRequest.ts +16 -0
- package/src/platformRbac/auth/VerifyChallengeResponse.ts +6 -0
- package/src/platformRbac/enums/ChallengeNameEnum.ts +7 -0
- package/src/platformRbac/enums/MfaMethodEnum.ts +4 -0
- package/src/platformRbac/index.ts +17 -0
- package/src/platformRbac/mfa/ChangeMfaMethodRequest.ts +10 -0
- package/src/platformRbac/mfa/EnrollTotpResponse.ts +12 -0
- package/src/platformRbac/mfa/MfaStatusResponse.ts +14 -0
- package/src/platformRbac/mfa/VerifyTotpEnrollmentRequest.ts +7 -0
- package/src/walletFunding/dtos/AuthorizeWalletFundingRequest.ts +18 -0
- package/src/walletFunding/dtos/AuthorizeWalletFundingResponse.ts +11 -0
- package/src/walletFunding/dtos/CancelFundingReferenceRequest.ts +7 -0
- package/src/walletFunding/dtos/CancelFundingReferenceResponse.ts +8 -0
- package/src/walletFunding/dtos/CancelWalletFundingRequest.ts +5 -0
- package/src/walletFunding/dtos/CancelWalletFundingResponse.ts +8 -0
- package/src/walletFunding/dtos/CreateFundingReferenceRequest.ts +18 -0
- package/src/walletFunding/dtos/CreateFundingReferenceResponse.ts +11 -0
- package/src/walletFunding/dtos/CreditWalletFundingRequest.ts +12 -0
- package/src/walletFunding/dtos/CreditWalletFundingResponse.ts +9 -0
- package/src/walletFunding/dtos/FundingProviderReferenceData.ts +10 -0
- package/src/walletFunding/dtos/ListFundingReferencesRequest.ts +7 -0
- package/src/walletFunding/dtos/ListFundingReferencesResponse.ts +5 -0
- package/src/walletFunding/dtos/ListWalletFundingReferencesRequest.ts +8 -0
- package/src/walletFunding/dtos/ListWalletFundingReferencesResponse.ts +18 -0
- package/src/walletFunding/dtos/ReverseWalletFundingRequest.ts +11 -0
- package/src/walletFunding/dtos/ReverseWalletFundingResponse.ts +8 -0
- package/src/walletFunding/dtos/ValidateWalletFundingRequest.ts +11 -0
- package/src/walletFunding/dtos/ValidateWalletFundingResponse.ts +7 -0
- package/src/walletFunding/dtos/index.ts +19 -0
- package/src/walletFunding/enums/FundingMethodEnum.ts +3 -0
- package/src/walletFunding/enums/WalletFundingErrorCodeEnum.ts +16 -0
- package/src/walletFunding/enums/WalletFundingModeEnum.ts +4 -0
- package/src/walletFunding/enums/WalletFundingPaymentStatusEnum.ts +6 -0
- package/src/walletFunding/enums/WalletFundingReferenceStatusEnum.ts +6 -0
- package/src/walletFunding/enums/WalletFundingRefundReasonEnum.ts +8 -0
- package/src/walletFunding/enums/index.ts +6 -0
- package/src/walletFunding/index.ts +2 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.d.ts +0 -20
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.js +0 -11
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.d.ts +0 -4
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.js +0 -6
- package/bin/rbac/enums/PoolKind.d.ts +0 -16
- package/bin/rbac/enums/PoolKind.js +0 -20
- package/bin/rbac/index.d.ts +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { plainToInstance } from 'class-transformer';
|
|
3
|
+
import { validate } from 'class-validator';
|
|
4
|
+
import {
|
|
5
|
+
DefineNextChallengeRequest,
|
|
6
|
+
ChallengeResultEntry,
|
|
7
|
+
} from '../../../../src/platformRbac/auth/DefineNextChallengeRequest';
|
|
8
|
+
import { ChallengeNameEnum } from '../../../../src/platformRbac/enums/ChallengeNameEnum';
|
|
9
|
+
|
|
10
|
+
describe('DefineNextChallengeRequest', () => {
|
|
11
|
+
it('valida happy path con session vacia', async () => {
|
|
12
|
+
const dto = plainToInstance(DefineNextChallengeRequest, {
|
|
13
|
+
cognitoSub: 'abc-123',
|
|
14
|
+
userNotFound: false,
|
|
15
|
+
session: [],
|
|
16
|
+
});
|
|
17
|
+
const errors = await validate(dto);
|
|
18
|
+
expect(errors).toEqual([]);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('valida happy path con session de un PASSWORD result', async () => {
|
|
22
|
+
const dto = plainToInstance(DefineNextChallengeRequest, {
|
|
23
|
+
cognitoSub: 'abc-123',
|
|
24
|
+
userNotFound: false,
|
|
25
|
+
session: [{ challengeName: ChallengeNameEnum.PASSWORD, challengeResult: true }],
|
|
26
|
+
});
|
|
27
|
+
const errors = await validate(dto);
|
|
28
|
+
expect(errors).toEqual([]);
|
|
29
|
+
expect(dto.session[0]).toBeInstanceOf(ChallengeResultEntry);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('falla si cognitoSub no es string', async () => {
|
|
33
|
+
const dto = plainToInstance(DefineNextChallengeRequest, {
|
|
34
|
+
cognitoSub: 42,
|
|
35
|
+
userNotFound: false,
|
|
36
|
+
session: [],
|
|
37
|
+
});
|
|
38
|
+
const errors = await validate(dto);
|
|
39
|
+
expect(errors.length).toBeGreaterThan(0);
|
|
40
|
+
expect(errors[0].property).toBe('cognitoSub');
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InputFieldTypeEnum } from "../enums/InputFieldTypeEnum";
|
|
2
|
+
import { InputValidation } from "./InputValidation";
|
|
3
|
+
import { SelectOption } from "./SelectOption";
|
|
4
|
+
/**
|
|
5
|
+
* Override parcial de un field individual del `inputSchema` por `key`.
|
|
6
|
+
* El admin no puede agregar ni quitar fields — solo editar los existentes.
|
|
7
|
+
*/
|
|
8
|
+
export declare class FieldOverrideRequest {
|
|
9
|
+
key: string;
|
|
10
|
+
type?: InputFieldTypeEnum;
|
|
11
|
+
label?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
helpImage?: string;
|
|
15
|
+
showHelp?: boolean;
|
|
16
|
+
options?: SelectOption[];
|
|
17
|
+
dependsOn?: string;
|
|
18
|
+
validation?: InputValidation;
|
|
19
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.FieldOverrideRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const InputFieldTypeEnum_1 = require("../enums/InputFieldTypeEnum");
|
|
16
|
+
const InputValidation_1 = require("./InputValidation");
|
|
17
|
+
const SelectOption_1 = require("./SelectOption");
|
|
18
|
+
/**
|
|
19
|
+
* Override parcial de un field individual del `inputSchema` por `key`.
|
|
20
|
+
* El admin no puede agregar ni quitar fields — solo editar los existentes.
|
|
21
|
+
*/
|
|
22
|
+
class FieldOverrideRequest {
|
|
23
|
+
}
|
|
24
|
+
exports.FieldOverrideRequest = FieldOverrideRequest;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], FieldOverrideRequest.prototype, "key", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsEnum)(InputFieldTypeEnum_1.InputFieldTypeEnum),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], FieldOverrideRequest.prototype, "type", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.MaxLength)(120),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], FieldOverrideRequest.prototype, "label", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(120),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], FieldOverrideRequest.prototype, "placeholder", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.IsBoolean)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], FieldOverrideRequest.prototype, "required", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], FieldOverrideRequest.prototype, "helpImage", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, class_validator_1.IsBoolean)(),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], FieldOverrideRequest.prototype, "showHelp", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsArray)(),
|
|
65
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
66
|
+
(0, class_transformer_1.Type)(() => SelectOption_1.SelectOption),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], FieldOverrideRequest.prototype, "options", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
(0, class_validator_1.MaxLength)(60),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], FieldOverrideRequest.prototype, "dependsOn", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.ValidateNested)(),
|
|
78
|
+
(0, class_transformer_1.Type)(() => InputValidation_1.InputValidation),
|
|
79
|
+
__metadata("design:type", InputValidation_1.InputValidation)
|
|
80
|
+
], FieldOverrideRequest.prototype, "validation", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FieldOverrideRequest } from "./FieldOverrideRequest";
|
|
2
|
+
/**
|
|
3
|
+
* Override del inputSchema completo. El array `fieldOverrides[]` lista overrides
|
|
4
|
+
* parciales por `key`. La validación cruzada de que cada `key` exista en el
|
|
5
|
+
* inputSchema del conector la hace el manager (no se puede expresar con class-validator).
|
|
6
|
+
*/
|
|
7
|
+
export declare class InputSchemaOverrideRequest {
|
|
8
|
+
fieldOverrides: FieldOverrideRequest[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.InputSchemaOverrideRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const FieldOverrideRequest_1 = require("./FieldOverrideRequest");
|
|
16
|
+
/**
|
|
17
|
+
* Override del inputSchema completo. El array `fieldOverrides[]` lista overrides
|
|
18
|
+
* parciales por `key`. La validación cruzada de que cada `key` exista en el
|
|
19
|
+
* inputSchema del conector la hace el manager (no se puede expresar con class-validator).
|
|
20
|
+
*/
|
|
21
|
+
class InputSchemaOverrideRequest {
|
|
22
|
+
}
|
|
23
|
+
exports.InputSchemaOverrideRequest = InputSchemaOverrideRequest;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsArray)(),
|
|
26
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
27
|
+
(0, class_transformer_1.Type)(() => FieldOverrideRequest_1.FieldOverrideRequest),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], InputSchemaOverrideRequest.prototype, "fieldOverrides", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estado de un leaf en el listado del backoffice de overrides.
|
|
3
|
+
*
|
|
4
|
+
* - ACTIVE: el override (si existe) tiene un base correspondiente en el catálogo del conector.
|
|
5
|
+
* - ORPHANED: existe override pero el conector ya no devuelve este leafId — el provider lo retiró.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum LeafOverrideStatusEnum {
|
|
8
|
+
ACTIVE = "ACTIVE",
|
|
9
|
+
ORPHANED = "ORPHANED"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeafOverrideStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estado de un leaf en el listado del backoffice de overrides.
|
|
6
|
+
*
|
|
7
|
+
* - ACTIVE: el override (si existe) tiene un base correspondiente en el catálogo del conector.
|
|
8
|
+
* - ORPHANED: existe override pero el conector ya no devuelve este leafId — el provider lo retiró.
|
|
9
|
+
*/
|
|
10
|
+
var LeafOverrideStatusEnum;
|
|
11
|
+
(function (LeafOverrideStatusEnum) {
|
|
12
|
+
LeafOverrideStatusEnum["ACTIVE"] = "ACTIVE";
|
|
13
|
+
LeafOverrideStatusEnum["ORPHANED"] = "ORPHANED";
|
|
14
|
+
})(LeafOverrideStatusEnum || (exports.LeafOverrideStatusEnum = LeafOverrideStatusEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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);
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -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.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);
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|