@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,51 @@
|
|
|
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.ReverseWalletFundingRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ReverseWalletFundingRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.ReverseWalletFundingRequest = ReverseWalletFundingRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MaxLength)(64),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ReverseWalletFundingRequest.prototype, "directoryId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(64),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ReverseWalletFundingRequest.prototype, "walletAccountId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.IsPositive)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ReverseWalletFundingRequest.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.Length)(3, 3),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ReverseWalletFundingRequest.prototype, "currencyCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.MaxLength)(32),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ReverseWalletFundingRequest.prototype, "providerName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(128),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ReverseWalletFundingRequest.prototype, "providerReference", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MaxLength)(64),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ReverseWalletFundingRequest.prototype, "providerTxId", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
export declare class ReverseWalletFundingResponse {
|
|
4
|
+
status: BenefitPaymentStatusEnum;
|
|
5
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
6
|
+
transactionNumber?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ValidateWalletFundingRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ValidateWalletFundingRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.ValidateWalletFundingRequest = ValidateWalletFundingRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MaxLength)(64),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ValidateWalletFundingRequest.prototype, "directoryId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(64),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ValidateWalletFundingRequest.prototype, "walletAccountId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.IsPositive)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ValidateWalletFundingRequest.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.Length)(3, 3),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ValidateWalletFundingRequest.prototype, "currencyCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.MaxLength)(32),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ValidateWalletFundingRequest.prototype, "providerName", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(128),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ValidateWalletFundingRequest.prototype, "providerReference", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.MaxLength)(64),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ValidateWalletFundingRequest.prototype, "providerTxId", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from "./FundingProviderReferenceData";
|
|
2
|
+
export * from "./AuthorizeWalletFundingRequest";
|
|
3
|
+
export * from "./AuthorizeWalletFundingResponse";
|
|
4
|
+
export * from "./CancelWalletFundingRequest";
|
|
5
|
+
export * from "./CancelWalletFundingResponse";
|
|
6
|
+
export * from "./ListWalletFundingReferencesRequest";
|
|
7
|
+
export * from "./ListWalletFundingReferencesResponse";
|
|
8
|
+
export * from "./CreateFundingReferenceRequest";
|
|
9
|
+
export * from "./CreateFundingReferenceResponse";
|
|
10
|
+
export * from "./CancelFundingReferenceRequest";
|
|
11
|
+
export * from "./CancelFundingReferenceResponse";
|
|
12
|
+
export * from "./ListFundingReferencesRequest";
|
|
13
|
+
export * from "./ListFundingReferencesResponse";
|
|
14
|
+
export * from "./ValidateWalletFundingRequest";
|
|
15
|
+
export * from "./ValidateWalletFundingResponse";
|
|
16
|
+
export * from "./CreditWalletFundingRequest";
|
|
17
|
+
export * from "./CreditWalletFundingResponse";
|
|
18
|
+
export * from "./ReverseWalletFundingRequest";
|
|
19
|
+
export * from "./ReverseWalletFundingResponse";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FundingProviderReferenceData"), exports);
|
|
18
|
+
__exportStar(require("./AuthorizeWalletFundingRequest"), exports);
|
|
19
|
+
__exportStar(require("./AuthorizeWalletFundingResponse"), exports);
|
|
20
|
+
__exportStar(require("./CancelWalletFundingRequest"), exports);
|
|
21
|
+
__exportStar(require("./CancelWalletFundingResponse"), exports);
|
|
22
|
+
__exportStar(require("./ListWalletFundingReferencesRequest"), exports);
|
|
23
|
+
__exportStar(require("./ListWalletFundingReferencesResponse"), exports);
|
|
24
|
+
__exportStar(require("./CreateFundingReferenceRequest"), exports);
|
|
25
|
+
__exportStar(require("./CreateFundingReferenceResponse"), exports);
|
|
26
|
+
__exportStar(require("./CancelFundingReferenceRequest"), exports);
|
|
27
|
+
__exportStar(require("./CancelFundingReferenceResponse"), exports);
|
|
28
|
+
__exportStar(require("./ListFundingReferencesRequest"), exports);
|
|
29
|
+
__exportStar(require("./ListFundingReferencesResponse"), exports);
|
|
30
|
+
__exportStar(require("./ValidateWalletFundingRequest"), exports);
|
|
31
|
+
__exportStar(require("./ValidateWalletFundingResponse"), exports);
|
|
32
|
+
__exportStar(require("./CreditWalletFundingRequest"), exports);
|
|
33
|
+
__exportStar(require("./CreditWalletFundingResponse"), exports);
|
|
34
|
+
__exportStar(require("./ReverseWalletFundingRequest"), exports);
|
|
35
|
+
__exportStar(require("./ReverseWalletFundingResponse"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FundingMethodEnum = void 0;
|
|
4
|
+
var FundingMethodEnum;
|
|
5
|
+
(function (FundingMethodEnum) {
|
|
6
|
+
FundingMethodEnum["CASH"] = "CASH";
|
|
7
|
+
})(FundingMethodEnum || (exports.FundingMethodEnum = FundingMethodEnum = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum WalletFundingErrorCodeEnum {
|
|
2
|
+
WALLET_NOT_ACTIVE = "WALLET_NOT_ACTIVE",
|
|
3
|
+
KYC_REQUIRED = "KYC_REQUIRED",
|
|
4
|
+
AMOUNT_EXCEEDS_LEVEL_LIMIT = "AMOUNT_EXCEEDS_LEVEL_LIMIT",
|
|
5
|
+
MONTHLY_LIMIT_EXCEEDED = "MONTHLY_LIMIT_EXCEEDED",
|
|
6
|
+
AML_BLOCKED = "AML_BLOCKED",
|
|
7
|
+
TOO_MANY_ACTIVE_REFERENCES = "TOO_MANY_ACTIVE_REFERENCES",
|
|
8
|
+
REFERENCE_NOT_FOUND = "REFERENCE_NOT_FOUND",
|
|
9
|
+
REFERENCE_NOT_CANCELABLE = "REFERENCE_NOT_CANCELABLE",
|
|
10
|
+
REFERENCE_EXPIRED = "REFERENCE_EXPIRED",
|
|
11
|
+
REFERENCE_CANCELLED = "REFERENCE_CANCELLED",
|
|
12
|
+
REFERENCE_ALREADY_PAID = "REFERENCE_ALREADY_PAID",
|
|
13
|
+
AMOUNT_MISMATCH = "AMOUNT_MISMATCH",
|
|
14
|
+
PROVIDER_REJECTED = "PROVIDER_REJECTED",
|
|
15
|
+
PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT"
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingErrorCodeEnum = void 0;
|
|
4
|
+
var WalletFundingErrorCodeEnum;
|
|
5
|
+
(function (WalletFundingErrorCodeEnum) {
|
|
6
|
+
WalletFundingErrorCodeEnum["WALLET_NOT_ACTIVE"] = "WALLET_NOT_ACTIVE";
|
|
7
|
+
WalletFundingErrorCodeEnum["KYC_REQUIRED"] = "KYC_REQUIRED";
|
|
8
|
+
WalletFundingErrorCodeEnum["AMOUNT_EXCEEDS_LEVEL_LIMIT"] = "AMOUNT_EXCEEDS_LEVEL_LIMIT";
|
|
9
|
+
WalletFundingErrorCodeEnum["MONTHLY_LIMIT_EXCEEDED"] = "MONTHLY_LIMIT_EXCEEDED";
|
|
10
|
+
WalletFundingErrorCodeEnum["AML_BLOCKED"] = "AML_BLOCKED";
|
|
11
|
+
WalletFundingErrorCodeEnum["TOO_MANY_ACTIVE_REFERENCES"] = "TOO_MANY_ACTIVE_REFERENCES";
|
|
12
|
+
WalletFundingErrorCodeEnum["REFERENCE_NOT_FOUND"] = "REFERENCE_NOT_FOUND";
|
|
13
|
+
WalletFundingErrorCodeEnum["REFERENCE_NOT_CANCELABLE"] = "REFERENCE_NOT_CANCELABLE";
|
|
14
|
+
WalletFundingErrorCodeEnum["REFERENCE_EXPIRED"] = "REFERENCE_EXPIRED";
|
|
15
|
+
WalletFundingErrorCodeEnum["REFERENCE_CANCELLED"] = "REFERENCE_CANCELLED";
|
|
16
|
+
WalletFundingErrorCodeEnum["REFERENCE_ALREADY_PAID"] = "REFERENCE_ALREADY_PAID";
|
|
17
|
+
WalletFundingErrorCodeEnum["AMOUNT_MISMATCH"] = "AMOUNT_MISMATCH";
|
|
18
|
+
WalletFundingErrorCodeEnum["PROVIDER_REJECTED"] = "PROVIDER_REJECTED";
|
|
19
|
+
WalletFundingErrorCodeEnum["PROVIDER_TIMEOUT"] = "PROVIDER_TIMEOUT";
|
|
20
|
+
})(WalletFundingErrorCodeEnum || (exports.WalletFundingErrorCodeEnum = WalletFundingErrorCodeEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingModeEnum = void 0;
|
|
4
|
+
var WalletFundingModeEnum;
|
|
5
|
+
(function (WalletFundingModeEnum) {
|
|
6
|
+
WalletFundingModeEnum["FIXED"] = "FIXED";
|
|
7
|
+
WalletFundingModeEnum["OPEN"] = "OPEN";
|
|
8
|
+
})(WalletFundingModeEnum || (exports.WalletFundingModeEnum = WalletFundingModeEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingPaymentStatusEnum = void 0;
|
|
4
|
+
var WalletFundingPaymentStatusEnum;
|
|
5
|
+
(function (WalletFundingPaymentStatusEnum) {
|
|
6
|
+
WalletFundingPaymentStatusEnum["CONSULTED"] = "CONSULTED";
|
|
7
|
+
WalletFundingPaymentStatusEnum["APPLIED"] = "APPLIED";
|
|
8
|
+
WalletFundingPaymentStatusEnum["REVERSED"] = "REVERSED";
|
|
9
|
+
WalletFundingPaymentStatusEnum["QUEUED_FOR_REFUND"] = "QUEUED_FOR_REFUND";
|
|
10
|
+
})(WalletFundingPaymentStatusEnum || (exports.WalletFundingPaymentStatusEnum = WalletFundingPaymentStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingReferenceStatusEnum = void 0;
|
|
4
|
+
var WalletFundingReferenceStatusEnum;
|
|
5
|
+
(function (WalletFundingReferenceStatusEnum) {
|
|
6
|
+
WalletFundingReferenceStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
WalletFundingReferenceStatusEnum["PAID"] = "PAID";
|
|
8
|
+
WalletFundingReferenceStatusEnum["EXPIRED"] = "EXPIRED";
|
|
9
|
+
WalletFundingReferenceStatusEnum["CANCELLED"] = "CANCELLED";
|
|
10
|
+
})(WalletFundingReferenceStatusEnum || (exports.WalletFundingReferenceStatusEnum = WalletFundingReferenceStatusEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum WalletFundingRefundReasonEnum {
|
|
2
|
+
WALLET_CANCELLED = "WALLET_CANCELLED",
|
|
3
|
+
AML_BLOCKED = "AML_BLOCKED",
|
|
4
|
+
LIMIT_EXCEEDED = "LIMIT_EXCEEDED",
|
|
5
|
+
WALLET_NOT_FOUND = "WALLET_NOT_FOUND",
|
|
6
|
+
PROCESSOR_FAILURE = "PROCESSOR_FAILURE",
|
|
7
|
+
INSUFFICIENT_BALANCE_FOR_REVERSE = "INSUFFICIENT_BALANCE_FOR_REVERSE"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletFundingRefundReasonEnum = void 0;
|
|
4
|
+
var WalletFundingRefundReasonEnum;
|
|
5
|
+
(function (WalletFundingRefundReasonEnum) {
|
|
6
|
+
WalletFundingRefundReasonEnum["WALLET_CANCELLED"] = "WALLET_CANCELLED";
|
|
7
|
+
WalletFundingRefundReasonEnum["AML_BLOCKED"] = "AML_BLOCKED";
|
|
8
|
+
WalletFundingRefundReasonEnum["LIMIT_EXCEEDED"] = "LIMIT_EXCEEDED";
|
|
9
|
+
WalletFundingRefundReasonEnum["WALLET_NOT_FOUND"] = "WALLET_NOT_FOUND";
|
|
10
|
+
WalletFundingRefundReasonEnum["PROCESSOR_FAILURE"] = "PROCESSOR_FAILURE";
|
|
11
|
+
WalletFundingRefundReasonEnum["INSUFFICIENT_BALANCE_FOR_REVERSE"] = "INSUFFICIENT_BALANCE_FOR_REVERSE";
|
|
12
|
+
})(WalletFundingRefundReasonEnum || (exports.WalletFundingRefundReasonEnum = WalletFundingRefundReasonEnum = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./FundingMethodEnum";
|
|
2
|
+
export * from "./WalletFundingModeEnum";
|
|
3
|
+
export * from "./WalletFundingReferenceStatusEnum";
|
|
4
|
+
export * from "./WalletFundingPaymentStatusEnum";
|
|
5
|
+
export * from "./WalletFundingErrorCodeEnum";
|
|
6
|
+
export * from "./WalletFundingRefundReasonEnum";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FundingMethodEnum"), exports);
|
|
18
|
+
__exportStar(require("./WalletFundingModeEnum"), exports);
|
|
19
|
+
__exportStar(require("./WalletFundingReferenceStatusEnum"), exports);
|
|
20
|
+
__exportStar(require("./WalletFundingPaymentStatusEnum"), exports);
|
|
21
|
+
__exportStar(require("./WalletFundingErrorCodeEnum"), exports);
|
|
22
|
+
__exportStar(require("./WalletFundingRefundReasonEnum"), exports);
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./enums
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./dtos"), exports);
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# http-client → inversify v8 (2.0.0) Implementation Plan
|
|
2
|
+
|
|
3
|
+
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
|
4
|
+
|
|
5
|
+
**Goal:** Migrar `@fiado/http-client` a inversify 8 (última) y dejarlo listo como major **2.0.0**, con la línea v6 (1.x) como rama de mantenimiento. **No se publica** hasta terminar los cambios y tener visto bueno.
|
|
6
|
+
|
|
7
|
+
**Architecture:** http-client solo usa `@injectable()` sobre `AxiosHttpRequest` (sin inyección por constructor). El cambio es: (1) introducir un smoke test que prueba que la clase se resuelve desde un `Container`, como guardia de regresión; (2) subir inversify a 8 moviéndola a `peerDependency` + `devDependency`; (3) dejar 2.0.0 listo (publicación diferida). Es la lib hoja (sin deps `@fiado`), por eso va primero.
|
|
8
|
+
|
|
9
|
+
**Tech Stack:** TypeScript 5.4, inversify 8.x (^8.1.0), reflect-metadata 0.2.2, axios 1.8, jest + ts-jest (nuevo).
|
|
10
|
+
|
|
11
|
+
**Nota de versión:** se va de v6 directo a **v8** (la última); se salta v7. Confirmado contra las guías oficiales ([v6](https://inversify.io/docs/guides/migrating-from-v6/), [v7](https://inversify.io/docs/guides/migrating-from-v7/)): http-client solo usa `@injectable()`, que **no cambió**.
|
|
12
|
+
|
|
13
|
+
**Constraint ESM:** inversify 8 es **ESM-only**; CommonJS lo consume vía `require(esm)` solo en **Node ≥20**. El build de la lib (tsconfig commonjs) no cambia, pero el harness de jest debe correr en Node 20+ y puede requerir ajuste si jest no resuelve el paquete ESM (ver Task 3 Step 3).
|
|
14
|
+
|
|
15
|
+
**Repo:** `/Users/yhon/fsrc/fiado-http-client` (rama base: `develop`, hoy en 1.0.10, limpia tras pull).
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Estructura de archivos
|
|
20
|
+
|
|
21
|
+
- `fiado-http-client/jest.config.js` — **crear**: config jest con preset ts-jest.
|
|
22
|
+
- `fiado-http-client/test/AxiosHttpRequest.di.test.ts` — **crear**: smoke test de resolución por container.
|
|
23
|
+
- `fiado-http-client/package.json` — **modificar**: scripts.test, devDependencies (jest, ts-jest, @types/jest, inversify, reflect-metadata), peerDependencies (inversify, reflect-metadata), quitar inversify de dependencies, bump version.
|
|
24
|
+
- `fiado-http-client/src/AxiosHttpRequest.ts` — **modificar solo si v8 lo exige** (no se espera cambio: `@injectable()` sigue igual).
|
|
25
|
+
- `fiado-http-client/tsconfig.json` — **modificar**: excluir `test/` del build de producción.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Task 1: Montar harness de tests + smoke test (baseline en inversify 6)
|
|
30
|
+
|
|
31
|
+
**Files:**
|
|
32
|
+
- Modify: `fiado-http-client/package.json`
|
|
33
|
+
- Create: `fiado-http-client/jest.config.js`
|
|
34
|
+
- Create: `fiado-http-client/test/AxiosHttpRequest.di.test.ts`
|
|
35
|
+
- Modify: `fiado-http-client/tsconfig.json`
|
|
36
|
+
|
|
37
|
+
- [ ] **Step 1: Instalar dependencias de test**
|
|
38
|
+
|
|
39
|
+
Run:
|
|
40
|
+
```bash
|
|
41
|
+
cd /Users/yhon/fsrc/fiado-http-client
|
|
42
|
+
npm install -D jest@^29 ts-jest@^29 @types/jest@^29
|
|
43
|
+
```
|
|
44
|
+
Expected: se agregan a `devDependencies`, sin errores de peer deps.
|
|
45
|
+
|
|
46
|
+
- [ ] **Step 2: Crear `jest.config.js`**
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
50
|
+
module.exports = {
|
|
51
|
+
preset: 'ts-jest',
|
|
52
|
+
testEnvironment: 'node',
|
|
53
|
+
testMatch: ['**/test/**/*.test.ts'],
|
|
54
|
+
setupFiles: ['reflect-metadata'],
|
|
55
|
+
};
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
- [ ] **Step 3: Actualizar el script de test en `package.json`**
|
|
59
|
+
|
|
60
|
+
Reemplazar la línea `"test": "test",` por:
|
|
61
|
+
```json
|
|
62
|
+
"test": "jest",
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
- [ ] **Step 4: Excluir `test/` del build en `tsconfig.json`**
|
|
66
|
+
|
|
67
|
+
Agregar a `exclude` (junto a `node_modules`):
|
|
68
|
+
```json
|
|
69
|
+
"exclude": [
|
|
70
|
+
"node_modules",
|
|
71
|
+
"test"
|
|
72
|
+
]
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- [ ] **Step 5: Escribir el smoke test (debe pasar con inversify 6 actual)**
|
|
76
|
+
|
|
77
|
+
Create `test/AxiosHttpRequest.di.test.ts`:
|
|
78
|
+
```ts
|
|
79
|
+
import 'reflect-metadata';
|
|
80
|
+
import { Container } from 'inversify';
|
|
81
|
+
import { AxiosHttpRequest } from '../src/AxiosHttpRequest';
|
|
82
|
+
import { IHttpRequest } from '../src/IHttpRequest';
|
|
83
|
+
|
|
84
|
+
describe('AxiosHttpRequest DI', () => {
|
|
85
|
+
it('se resuelve como IHttpRequest desde un Container de inversify', () => {
|
|
86
|
+
const container = new Container();
|
|
87
|
+
container.bind<IHttpRequest>('IHttpRequest').to(AxiosHttpRequest);
|
|
88
|
+
|
|
89
|
+
const instance = container.get<IHttpRequest>('IHttpRequest');
|
|
90
|
+
|
|
91
|
+
expect(instance).toBeInstanceOf(AxiosHttpRequest);
|
|
92
|
+
expect(typeof instance.get).toBe('function');
|
|
93
|
+
expect(typeof instance.post).toBe('function');
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
- [ ] **Step 6: Correr el test (baseline verde en inversify 6)**
|
|
99
|
+
|
|
100
|
+
Run:
|
|
101
|
+
```bash
|
|
102
|
+
cd /Users/yhon/fsrc/fiado-http-client && npm test
|
|
103
|
+
```
|
|
104
|
+
Expected: PASS (1 test). Esto fija el baseline antes del bump.
|
|
105
|
+
|
|
106
|
+
- [ ] **Step 7: Commit**
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
cd /Users/yhon/fsrc/fiado-http-client
|
|
110
|
+
git add jest.config.js test/AxiosHttpRequest.di.test.ts package.json package-lock.json tsconfig.json
|
|
111
|
+
git commit -m "test: add DI smoke test and jest harness for http-client"
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Task 2: Crear rama de mantenimiento v6 antes de subir develop a v8
|
|
117
|
+
|
|
118
|
+
**Files:** ninguno (operación de git/branch)
|
|
119
|
+
|
|
120
|
+
- [ ] **Step 1: Cortar la rama de mantenimiento desde el develop actual (1.x)**
|
|
121
|
+
|
|
122
|
+
Run:
|
|
123
|
+
```bash
|
|
124
|
+
cd /Users/yhon/fsrc/fiado-http-client
|
|
125
|
+
git checkout -b release/1.x
|
|
126
|
+
git push -u origin release/1.x
|
|
127
|
+
git checkout develop
|
|
128
|
+
```
|
|
129
|
+
Expected: `release/1.x` creada en remoto desde 1.0.10. `develop` será la línea v8.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Task 3: Subir inversify a v8 como peerDependency
|
|
134
|
+
|
|
135
|
+
**Files:**
|
|
136
|
+
- Modify: `fiado-http-client/package.json`
|
|
137
|
+
- (posible) Modify: `fiado-http-client/src/AxiosHttpRequest.ts`
|
|
138
|
+
|
|
139
|
+
- [ ] **Step 1: Quitar inversify de `dependencies` e instalar v8 como peer + dev**
|
|
140
|
+
|
|
141
|
+
Editar `package.json`:
|
|
142
|
+
- Quitar `"inversify": "^6.0.2"` de `dependencies` (dejar ahí solo `axios` y `typescript`).
|
|
143
|
+
- Agregar bloque:
|
|
144
|
+
```json
|
|
145
|
+
"peerDependencies": {
|
|
146
|
+
"inversify": "^8.0.0",
|
|
147
|
+
"reflect-metadata": "^0.2.2"
|
|
148
|
+
},
|
|
149
|
+
```
|
|
150
|
+
- Agregar a `devDependencies`: `"inversify": "^8.1.0"`, `"reflect-metadata": "^0.2.2"`.
|
|
151
|
+
|
|
152
|
+
Luego instalar:
|
|
153
|
+
```bash
|
|
154
|
+
cd /Users/yhon/fsrc/fiado-http-client
|
|
155
|
+
npm install
|
|
156
|
+
```
|
|
157
|
+
Expected: inversify 8.x en `node_modules`, sin errores.
|
|
158
|
+
|
|
159
|
+
- [ ] **Step 2: Compilar contra v8**
|
|
160
|
+
|
|
161
|
+
Run:
|
|
162
|
+
```bash
|
|
163
|
+
cd /Users/yhon/fsrc/fiado-http-client && npm run build
|
|
164
|
+
```
|
|
165
|
+
Expected: PASS. Si falla por la API de decoradores, ajustar el import de `@injectable` según la guía v8 (no se espera; `import { injectable } from 'inversify'` sigue válido).
|
|
166
|
+
|
|
167
|
+
- [ ] **Step 3: Correr el smoke test contra v8 (debe seguir verde)**
|
|
168
|
+
|
|
169
|
+
Run:
|
|
170
|
+
```bash
|
|
171
|
+
node --version # debe ser >= 20 (inversify 8 es ESM-only)
|
|
172
|
+
cd /Users/yhon/fsrc/fiado-http-client && npm test
|
|
173
|
+
```
|
|
174
|
+
Expected: PASS. Notas según la guía oficial:
|
|
175
|
+
- `container.get()` **sigue síncrono** en v8 (convención sync-first), así que el test no debería requerir `getAsync`.
|
|
176
|
+
- Si jest falla al cargar inversify 8 por ser **ESM-only** (error tipo `Cannot use import statement outside a module` o `ERR_REQUIRE_ESM`), habilitar ESM en jest: correr con `NODE_OPTIONS=--experimental-vm-modules`, `preset: 'ts-jest/presets/default-esm'` y `extensionsToTreatAsEsm: ['.ts']` en `jest.config.js`. Documentar el ajuste final para reutilizarlo en las demás libs.
|
|
177
|
+
|
|
178
|
+
- [ ] **Step 4: Commit**
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
cd /Users/yhon/fsrc/fiado-http-client
|
|
182
|
+
git add package.json package-lock.json src/
|
|
183
|
+
git commit -m "feat!: bump inversify to v8 as peerDependency
|
|
184
|
+
|
|
185
|
+
BREAKING CHANGE: requires inversify ^8 in the consumer. inversify ya no
|
|
186
|
+
es dependency directa; ahora es peerDependency para compartir una sola
|
|
187
|
+
instancia con el container del consumidor."
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Task 4: Bump a 2.0.0 (sin publicar)
|
|
193
|
+
|
|
194
|
+
**Files:**
|
|
195
|
+
- Modify: `fiado-http-client/package.json`
|
|
196
|
+
|
|
197
|
+
- [ ] **Step 1: Subir la versión a 2.0.0**
|
|
198
|
+
|
|
199
|
+
Run:
|
|
200
|
+
```bash
|
|
201
|
+
cd /Users/yhon/fsrc/fiado-http-client
|
|
202
|
+
npm version 2.0.0 --no-git-tag-version
|
|
203
|
+
```
|
|
204
|
+
Expected: `package.json` queda en `"version": "2.0.0"`.
|
|
205
|
+
|
|
206
|
+
- [ ] **Step 2: Build limpio y verificación final**
|
|
207
|
+
|
|
208
|
+
Run:
|
|
209
|
+
```bash
|
|
210
|
+
cd /Users/yhon/fsrc/fiado-http-client && npm run build && npm test
|
|
211
|
+
```
|
|
212
|
+
Expected: build OK + test PASS.
|
|
213
|
+
|
|
214
|
+
- [ ] **Step 3: Commit y tag (sin publicar a npm)**
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
cd /Users/yhon/fsrc/fiado-http-client
|
|
218
|
+
git add package.json
|
|
219
|
+
git commit -m "2.0.0"
|
|
220
|
+
git tag v2.0.0
|
|
221
|
+
git push origin develop --tags
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
- [ ] **Step 4: Publicación — EN ESPERA**
|
|
225
|
+
|
|
226
|
+
> **NO publicar todavía.** Por instrucción del usuario, ninguna lib se publica a
|
|
227
|
+
> npm hasta terminar todos los cambios del set (http-client, gateway-adapter,
|
|
228
|
+
> api-invoker) y tener visto bueno explícito. Cuando se autorice, el publish
|
|
229
|
+
> será (resolviendo antes el token de npm del `.npmrc`, ver spec §Seguridad):
|
|
230
|
+
>
|
|
231
|
+
> ```bash
|
|
232
|
+
> npm publish # 2.0.0 como dist-tag "latest"
|
|
233
|
+
> npm dist-tag add @fiado/http-client@1.0.10 legacy-v6
|
|
234
|
+
> ```
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Self-Review
|
|
239
|
+
|
|
240
|
+
- **Cobertura del spec:** http-client es la primera lib del §5 del spec; este plan cubre su migración (v8), la creación de la línea de mantenimiento (§6) y deja el publish documentado pero **en espera** (instrucción del usuario). gateway-adapter + api-invoker y las lambdas son planes aparte.
|
|
241
|
+
- **peerDependency:** decisión añadida sobre el spec para garantizar una sola instancia de inversify a través de la frontera lib↔lambda. Coherente con la causa raíz del §2.
|
|
242
|
+
- **Sin placeholders:** todos los pasos tienen comando o código concreto.
|
|
243
|
+
- **Riesgo abierto:** si `container.get` resultara async en 8.x, el Step 3 de Task 3 lo detecta y obliga a actualizar el test; ese hallazgo se documenta para el codemod de las lambdas.
|