@fiado/type-kit 3.1.21 → 3.1.22
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/aiEngine/dtos/internal/AiAnalyzeRequest.d.ts +5 -0
- package/bin/aiEngine/dtos/internal/AiAnalyzeRequest.js +31 -0
- package/bin/aiEngine/dtos/internal/AiAnalyzeResponse.d.ts +6 -0
- package/bin/aiEngine/dtos/internal/AiAnalyzeResponse.js +6 -0
- package/bin/aiEngine/index.d.ts +2 -0
- package/bin/aiEngine/index.js +19 -0
- package/bin/card/enums/PinChangedStatus.d.ts +6 -0
- package/bin/card/enums/PinChangedStatus.js +10 -0
- package/bin/card/enums/Status.d.ts +2 -1
- package/bin/card/enums/Status.js +1 -0
- package/bin/card/enums/UpdateKey.d.ts +2 -1
- package/bin/card/enums/UpdateKey.js +1 -0
- package/bin/card/index.d.ts +1 -0
- package/bin/card/index.js +1 -0
- package/bin/comission-business/dtos/CreatePayableRequest.d.ts +1 -1
- package/bin/comission-business/dtos/CreatePaymentMadeRequest.d.ts +1 -1
- package/bin/comission-business/dtos/UpdatePaymentMadeRequest.d.ts +0 -1
- package/bin/comission-business/enums/DepositStatusEnum.d.ts +2 -1
- package/bin/comission-business/enums/DepositStatusEnum.js +2 -1
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +3 -2
- package/bin/comission-business/enums/PaymentStatusEnum.js +3 -2
- package/bin/credit/dtos/ExpedienteIdentityResponse.d.ts +40 -0
- package/bin/credit/dtos/ExpedienteIdentityResponse.js +25 -0
- package/bin/credit/index.d.ts +1 -0
- package/bin/credit/index.js +1 -0
- package/bin/index.d.ts +2 -0
- package/bin/index.js +3 -1
- package/bin/platformErrorEvents/index.d.ts +1 -0
- package/bin/platformErrorEvents/index.js +3 -1
- package/bin/platformErrorEvents/severity/card-business.severity.d.ts +1 -0
- package/bin/platformErrorEvents/severity/card-business.severity.js +25 -0
- package/bin/productCatalog/enums/ProductTypeEnum.d.ts +3 -1
- package/bin/productCatalog/enums/ProductTypeEnum.js +2 -0
- package/bin/sentry/dtos/SentryAnalysisResult.d.ts +13 -0
- package/bin/sentry/dtos/SentryAnalysisResult.js +6 -0
- package/bin/sentry/dtos/SentryIssueAnalyzeRequest.d.ts +3 -0
- package/bin/sentry/dtos/SentryIssueAnalyzeRequest.js +21 -0
- package/bin/sentry/dtos/SentryIssueAnalyzeResponse.d.ts +6 -0
- package/bin/sentry/dtos/SentryIssueAnalyzeResponse.js +6 -0
- package/bin/sentry/index.d.ts +3 -0
- package/bin/sentry/index.js +20 -0
- package/bin/servicePayment/dtos/ServicePaymentRequest.d.ts +3 -1
- package/bin/servicePayment/dtos/ServicePaymentRequest.js +9 -1
- package/bin/stpSpei/enums/BusinessNameEnum.d.ts +2 -1
- package/bin/stpSpei/enums/BusinessNameEnum.js +1 -0
- package/bin/transaction/dtos/TransactionCreateRequest.d.ts +1 -0
- package/bin/transaction/dtos/TransactionCreateRequest.js +5 -0
- package/package.json +1 -1
- package/src/credit/dtos/ExpedienteIdentityResponse.ts +44 -0
- package/src/credit/index.ts +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
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.AiAnalyzeRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class AiAnalyzeRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.AiAnalyzeRequest = AiAnalyzeRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AiAnalyzeRequest.prototype, "prompt", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], AiAnalyzeRequest.prototype, "systemPrompt", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], AiAnalyzeRequest.prototype, "modelId", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
//dtos/internal
|
|
18
|
+
__exportStar(require("./dtos/internal/AiAnalyzeRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/internal/AiAnalyzeResponse"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PinChangedStatus = void 0;
|
|
4
|
+
var PinChangedStatus;
|
|
5
|
+
(function (PinChangedStatus) {
|
|
6
|
+
PinChangedStatus["PENDING_ATM_CONFIRMATION"] = "PENDING_ATM_CONFIRMATION";
|
|
7
|
+
PinChangedStatus["ATM_CONFIRMATION_FIRST"] = "ATM_CONFIRMATION_FIRST";
|
|
8
|
+
PinChangedStatus["ATM_CONFIRMATION_SECOND"] = "ATM_CONFIRMATION_SECOND";
|
|
9
|
+
PinChangedStatus["ND"] = "ND";
|
|
10
|
+
})(PinChangedStatus || (exports.PinChangedStatus = PinChangedStatus = {}));
|
package/bin/card/enums/Status.js
CHANGED
package/bin/card/index.d.ts
CHANGED
package/bin/card/index.js
CHANGED
|
@@ -83,3 +83,4 @@ __exportStar(require("./enums/issuance/ObservationStatus"), exports);
|
|
|
83
83
|
__exportStar(require("./enums/ReplaceBankAccountCardReasonEnum"), exports);
|
|
84
84
|
__exportStar(require("./enums/CardReasonStatus"), exports);
|
|
85
85
|
__exportStar(require("./enums/KycReason"), exports);
|
|
86
|
+
__exportStar(require("./enums/PinChangedStatus"), exports);
|
|
@@ -2,10 +2,10 @@ import { PaymentMethodEnum } from "../enums/PaymentMethodEnum";
|
|
|
2
2
|
export interface CreatePaymentMadeRequest {
|
|
3
3
|
amount: number;
|
|
4
4
|
currency: string;
|
|
5
|
-
period: string;
|
|
6
5
|
method: PaymentMethodEnum;
|
|
7
6
|
referencePaid?: string;
|
|
8
7
|
dateReceivedPay?: string;
|
|
9
8
|
txNumber?: string;
|
|
10
9
|
commissionDepositsId?: string;
|
|
10
|
+
beneficiaryDirectoryId?: string;
|
|
11
11
|
}
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DepositStatusEnum = void 0;
|
|
4
4
|
var DepositStatusEnum;
|
|
5
5
|
(function (DepositStatusEnum) {
|
|
6
|
-
DepositStatusEnum["
|
|
6
|
+
DepositStatusEnum["PENDING"] = "PENDING";
|
|
7
7
|
DepositStatusEnum["EXCLUDE"] = "EXCLUDE";
|
|
8
|
+
DepositStatusEnum["PARTIAL"] = "PARTIAL";
|
|
8
9
|
DepositStatusEnum["PAID"] = "PAID";
|
|
9
10
|
DepositStatusEnum["RECONCILED"] = "RECONCILED";
|
|
10
11
|
})(DepositStatusEnum || (exports.DepositStatusEnum = DepositStatusEnum = {}));
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PaymentStatusEnum = void 0;
|
|
4
4
|
var PaymentStatusEnum;
|
|
5
5
|
(function (PaymentStatusEnum) {
|
|
6
|
-
PaymentStatusEnum["
|
|
7
|
-
PaymentStatusEnum["
|
|
6
|
+
PaymentStatusEnum["PENDING"] = "PENDING";
|
|
7
|
+
PaymentStatusEnum["PAID"] = "PAID";
|
|
8
|
+
PaymentStatusEnum["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
8
9
|
})(PaymentStatusEnum || (exports.PaymentStatusEnum = PaymentStatusEnum = {}));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint GET /credit/backoffice/expedientes/{directoryId}/identity (P10 §4.2).
|
|
3
|
+
* Compone datos del identity-lambda (people + OCR + signed URLs) con el score
|
|
4
|
+
* anti-fraude del risk-profile-business.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ExpedienteIdentityPersonalData {
|
|
7
|
+
full_name: string;
|
|
8
|
+
rfc: string | null;
|
|
9
|
+
date_of_birth: string | null;
|
|
10
|
+
sex: string | null;
|
|
11
|
+
nationality: string | null;
|
|
12
|
+
email: string | null;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Documento de identidad presentado por el cliente en el KYC.
|
|
16
|
+
* Combina datos OCR (de people.documents[i]) con la URL firmada S3
|
|
17
|
+
* del archivo correspondiente (imagen/PDF).
|
|
18
|
+
*/
|
|
19
|
+
export declare class ExpedienteIdentityDocument {
|
|
20
|
+
key: string;
|
|
21
|
+
signed_url: string;
|
|
22
|
+
signed_url_expires_at: string | null;
|
|
23
|
+
type_of_document: string | null;
|
|
24
|
+
document_number: string | null;
|
|
25
|
+
verification_date: string | null;
|
|
26
|
+
country_id: string | null;
|
|
27
|
+
ocr_full_name: string | null;
|
|
28
|
+
ocr_date_of_birth: string | null;
|
|
29
|
+
ocr_sex: string | null;
|
|
30
|
+
}
|
|
31
|
+
export declare class ExpedienteIdentityRiskProfile {
|
|
32
|
+
score: number | null;
|
|
33
|
+
level: string | null;
|
|
34
|
+
manual_risk_level: number | null;
|
|
35
|
+
}
|
|
36
|
+
export declare class ExpedienteIdentityResponse {
|
|
37
|
+
personal_data: ExpedienteIdentityPersonalData;
|
|
38
|
+
documents: ExpedienteIdentityDocument[];
|
|
39
|
+
risk_profile: ExpedienteIdentityRiskProfile | null;
|
|
40
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Respuesta del endpoint GET /credit/backoffice/expedientes/{directoryId}/identity (P10 §4.2).
|
|
4
|
+
* Compone datos del identity-lambda (people + OCR + signed URLs) con el score
|
|
5
|
+
* anti-fraude del risk-profile-business.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ExpedienteIdentityResponse = exports.ExpedienteIdentityRiskProfile = exports.ExpedienteIdentityDocument = exports.ExpedienteIdentityPersonalData = void 0;
|
|
9
|
+
class ExpedienteIdentityPersonalData {
|
|
10
|
+
}
|
|
11
|
+
exports.ExpedienteIdentityPersonalData = ExpedienteIdentityPersonalData;
|
|
12
|
+
/**
|
|
13
|
+
* Documento de identidad presentado por el cliente en el KYC.
|
|
14
|
+
* Combina datos OCR (de people.documents[i]) con la URL firmada S3
|
|
15
|
+
* del archivo correspondiente (imagen/PDF).
|
|
16
|
+
*/
|
|
17
|
+
class ExpedienteIdentityDocument {
|
|
18
|
+
}
|
|
19
|
+
exports.ExpedienteIdentityDocument = ExpedienteIdentityDocument;
|
|
20
|
+
class ExpedienteIdentityRiskProfile {
|
|
21
|
+
}
|
|
22
|
+
exports.ExpedienteIdentityRiskProfile = ExpedienteIdentityRiskProfile;
|
|
23
|
+
class ExpedienteIdentityResponse {
|
|
24
|
+
}
|
|
25
|
+
exports.ExpedienteIdentityResponse = ExpedienteIdentityResponse;
|
package/bin/credit/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './dtos/CreditOfferOptionItem';
|
|
|
12
12
|
export * from './dtos/FinancialProfileResponse';
|
|
13
13
|
export * from './dtos/ExpedienteSearchItem';
|
|
14
14
|
export * from './dtos/ExpedienteResumenResponse';
|
|
15
|
+
export * from './dtos/ExpedienteIdentityResponse';
|
|
15
16
|
export * from './dtos/internal/CreditProfileResponse';
|
|
16
17
|
export * from './dtos/internal/CreditBalanceResponse';
|
|
17
18
|
export * from './dtos/internal/LienStatusResponse';
|
package/bin/credit/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __exportStar(require("./dtos/CreditOfferOptionItem"), exports);
|
|
|
30
30
|
__exportStar(require("./dtos/FinancialProfileResponse"), exports);
|
|
31
31
|
__exportStar(require("./dtos/ExpedienteSearchItem"), exports);
|
|
32
32
|
__exportStar(require("./dtos/ExpedienteResumenResponse"), exports);
|
|
33
|
+
__exportStar(require("./dtos/ExpedienteIdentityResponse"), exports);
|
|
33
34
|
// DTOs internos (inter-service)
|
|
34
35
|
__exportStar(require("./dtos/internal/CreditProfileResponse"), exports);
|
|
35
36
|
__exportStar(require("./dtos/internal/CreditBalanceResponse"), exports);
|
package/bin/index.d.ts
CHANGED
|
@@ -62,3 +62,5 @@ export * as CreditEngine from './creditEngine';
|
|
|
62
62
|
export * as PlatformErrorEvents from './platformErrorEvents';
|
|
63
63
|
export * as TeamsConnector from './teamsConnector';
|
|
64
64
|
export * as Funnel from './funnel';
|
|
65
|
+
export * as AiEngine from './aiEngine';
|
|
66
|
+
export * as Sentry from './sentry';
|
package/bin/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.Collector = 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.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.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = void 0;
|
|
37
|
+
exports.Sentry = exports.AiEngine = exports.Funnel = exports.TeamsConnector = exports.PlatformErrorEvents = exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = void 0;
|
|
38
38
|
exports.Crypto = __importStar(require("./crypto"));
|
|
39
39
|
exports.Account = __importStar(require("./account"));
|
|
40
40
|
exports.Activity = __importStar(require("./activity"));
|
|
@@ -99,3 +99,5 @@ exports.CreditEngine = __importStar(require("./creditEngine"));
|
|
|
99
99
|
exports.PlatformErrorEvents = __importStar(require("./platformErrorEvents"));
|
|
100
100
|
exports.TeamsConnector = __importStar(require("./teamsConnector"));
|
|
101
101
|
exports.Funnel = __importStar(require("./funnel"));
|
|
102
|
+
exports.AiEngine = __importStar(require("./aiEngine"));
|
|
103
|
+
exports.Sentry = __importStar(require("./sentry"));
|
|
@@ -3,3 +3,4 @@ export * from './enums/ErrorSeverityEnum';
|
|
|
3
3
|
export * from './enums/ErrorStatusEnum';
|
|
4
4
|
export * from './enums/ResolutionTypeEnum';
|
|
5
5
|
export { TRANSACTION_PROCESSOR_SEVERITY_BY_CODE } from './severity/transaction-processor.severity';
|
|
6
|
+
export { CARD_BUSINESS_SEVERITY_BY_CODE } from './severity/card-business.severity';
|
|
@@ -14,7 +14,7 @@ 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
|
-
exports.TRANSACTION_PROCESSOR_SEVERITY_BY_CODE = void 0;
|
|
17
|
+
exports.CARD_BUSINESS_SEVERITY_BY_CODE = exports.TRANSACTION_PROCESSOR_SEVERITY_BY_CODE = void 0;
|
|
18
18
|
//dtos/internal
|
|
19
19
|
__exportStar(require("./dtos/internal/PlatformErrorEventMessage"), exports);
|
|
20
20
|
//enums
|
|
@@ -24,3 +24,5 @@ __exportStar(require("./enums/ResolutionTypeEnum"), exports);
|
|
|
24
24
|
// Mapas de severidad por lambda
|
|
25
25
|
var transaction_processor_severity_1 = require("./severity/transaction-processor.severity");
|
|
26
26
|
Object.defineProperty(exports, "TRANSACTION_PROCESSOR_SEVERITY_BY_CODE", { enumerable: true, get: function () { return transaction_processor_severity_1.TRANSACTION_PROCESSOR_SEVERITY_BY_CODE; } });
|
|
27
|
+
var card_business_severity_1 = require("./severity/card-business.severity");
|
|
28
|
+
Object.defineProperty(exports, "CARD_BUSINESS_SEVERITY_BY_CODE", { enumerable: true, get: function () { return card_business_severity_1.CARD_BUSINESS_SEVERITY_BY_CODE; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CARD_BUSINESS_SEVERITY_BY_CODE: Record<string, string>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CARD_BUSINESS_SEVERITY_BY_CODE = void 0;
|
|
4
|
+
// Mapa canónico de severidades para fiado-card-business.
|
|
5
|
+
// Cada lambda tiene su propio archivo en este directorio.
|
|
6
|
+
// Fuente de verdad: sincronizado con los error.code que lanzan las excepciones del lambda.
|
|
7
|
+
exports.CARD_BUSINESS_SEVERITY_BY_CODE = {
|
|
8
|
+
// CRITICAL — pérdida de datos, requiere acción inmediata
|
|
9
|
+
"DB_WRITE_ERROR": "CRITICAL",
|
|
10
|
+
// HIGH — errores técnicos inesperados
|
|
11
|
+
"SYSTEM_ERROR": "HIGH",
|
|
12
|
+
"TIME_OUT": "HIGH",
|
|
13
|
+
"CARD_PROCESSOR_ERROR": "HIGH",
|
|
14
|
+
// MEDIUM — errores de configuración o datos inválidos
|
|
15
|
+
"INVALID_TOKEN": "MEDIUM",
|
|
16
|
+
"PRODUCT_NOT_FOUND": "MEDIUM",
|
|
17
|
+
// LOW — errores de negocio esperados (útiles para soporte)
|
|
18
|
+
"INSUFFICIENT_FUNDS": "LOW",
|
|
19
|
+
"CARD_NOT_FOUND": "LOW",
|
|
20
|
+
"CARD_NOT_ACTIVE": "LOW",
|
|
21
|
+
"ACCOUNT_BLOCKED": "LOW",
|
|
22
|
+
"ACCOUNT_NOT_FOUND": "LOW",
|
|
23
|
+
"USER_NOT_ACTIVE": "LOW",
|
|
24
|
+
"INVALID_REQUEST": "LOW",
|
|
25
|
+
};
|
|
@@ -12,4 +12,6 @@ var ProductTypeEnum;
|
|
|
12
12
|
ProductTypeEnum["FIADO_BUSINESS"] = "FIADO_BUSINESS";
|
|
13
13
|
ProductTypeEnum["CP"] = "CP";
|
|
14
14
|
ProductTypeEnum["CREDIT"] = "CREDIT";
|
|
15
|
+
ProductTypeEnum["MULTICOMM_SERV_SA"] = "MULTICOMM_SERV_SA";
|
|
16
|
+
ProductTypeEnum["MULTICENTER_SERV_SA"] = "MULTICENTER_SERV_SA";
|
|
15
17
|
})(ProductTypeEnum || (exports.ProductTypeEnum = ProductTypeEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SentryErrorOrigin {
|
|
2
|
+
layer: string;
|
|
3
|
+
class: string;
|
|
4
|
+
method: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SentryAnalysisResult {
|
|
7
|
+
rootCause: string;
|
|
8
|
+
errorOrigin: SentryErrorOrigin;
|
|
9
|
+
suggestedFix: string[];
|
|
10
|
+
impactLevel: string;
|
|
11
|
+
executiveSummary: string;
|
|
12
|
+
issueInsights: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.SentryIssueAnalyzeRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SentryIssueAnalyzeRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.SentryIssueAnalyzeRequest = SentryIssueAnalyzeRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SentryIssueAnalyzeRequest.prototype, "issueId", void 0);
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
//dtos
|
|
18
|
+
__exportStar(require("./dtos/SentryIssueAnalyzeRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/SentryIssueAnalyzeResponse"), exports);
|
|
20
|
+
__exportStar(require("./dtos/SentryAnalysisResult"), exports);
|
|
@@ -42,7 +42,15 @@ __decorate([
|
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, class_validator_1.IsOptional)(),
|
|
44
44
|
__metadata("design:type", Number)
|
|
45
|
-
], ServicePaymentRequest.prototype, "
|
|
45
|
+
], ServicePaymentRequest.prototype, "clientCharge", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ServicePaymentRequest.prototype, "fees", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], ServicePaymentRequest.prototype, "tax", void 0);
|
|
46
54
|
__decorate([
|
|
47
55
|
(0, class_validator_1.IsNotEmpty)(),
|
|
48
56
|
(0, class_validator_1.Length)(1, 50),
|
|
@@ -5,4 +5,5 @@ var BusinessNameEnum;
|
|
|
5
5
|
(function (BusinessNameEnum) {
|
|
6
6
|
BusinessNameEnum["FIADOSA"] = "FIADOSA";
|
|
7
7
|
BusinessNameEnum["PAGO_CONFIADO"] = "PAGO_CONFIADO";
|
|
8
|
+
BusinessNameEnum["FIADOINC"] = "FIADO_INC";
|
|
8
9
|
})(BusinessNameEnum || (exports.BusinessNameEnum = BusinessNameEnum = {}));
|
|
@@ -190,3 +190,8 @@ __decorate([
|
|
|
190
190
|
(0, class_validator_1.IsOptional)(),
|
|
191
191
|
__metadata("design:type", String)
|
|
192
192
|
], TransactionCreateRequest.prototype, "metaData", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, class_validator_1.IsString)(),
|
|
195
|
+
(0, class_validator_1.IsOptional)(),
|
|
196
|
+
__metadata("design:type", String)
|
|
197
|
+
], TransactionCreateRequest.prototype, "domFolio", void 0);
|
package/package.json
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint GET /credit/backoffice/expedientes/{directoryId}/identity (P10 §4.2).
|
|
3
|
+
* Compone datos del identity-lambda (people + OCR + signed URLs) con el score
|
|
4
|
+
* anti-fraude del risk-profile-business.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export class ExpedienteIdentityPersonalData {
|
|
8
|
+
full_name: string; // latNames + latFirstLastName + latSecondLastName
|
|
9
|
+
rfc: string | null;
|
|
10
|
+
date_of_birth: string | null;
|
|
11
|
+
sex: string | null;
|
|
12
|
+
nationality: string | null;
|
|
13
|
+
email: string | null; // internalEmail del People
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Documento de identidad presentado por el cliente en el KYC.
|
|
18
|
+
* Combina datos OCR (de people.documents[i]) con la URL firmada S3
|
|
19
|
+
* del archivo correspondiente (imagen/PDF).
|
|
20
|
+
*/
|
|
21
|
+
export class ExpedienteIdentityDocument {
|
|
22
|
+
key: string; // filename en S3, ej. "PASSPORT_FRONT.png"
|
|
23
|
+
signed_url: string; // URL firmada TTL corto
|
|
24
|
+
signed_url_expires_at: string | null;
|
|
25
|
+
type_of_document: string | null; // "passport", "ine", "selfie", "liveness"
|
|
26
|
+
document_number: string | null;
|
|
27
|
+
verification_date: string | null;
|
|
28
|
+
country_id: string | null;
|
|
29
|
+
ocr_full_name: string | null;
|
|
30
|
+
ocr_date_of_birth: string | null;
|
|
31
|
+
ocr_sex: string | null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class ExpedienteIdentityRiskProfile {
|
|
35
|
+
score: number | null;
|
|
36
|
+
level: string | null;
|
|
37
|
+
manual_risk_level: number | null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class ExpedienteIdentityResponse {
|
|
41
|
+
personal_data: ExpedienteIdentityPersonalData;
|
|
42
|
+
documents: ExpedienteIdentityDocument[];
|
|
43
|
+
risk_profile: ExpedienteIdentityRiskProfile | null;
|
|
44
|
+
}
|
package/src/credit/index.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './dtos/CreditOfferOptionItem';
|
|
|
15
15
|
export * from './dtos/FinancialProfileResponse';
|
|
16
16
|
export * from './dtos/ExpedienteSearchItem';
|
|
17
17
|
export * from './dtos/ExpedienteResumenResponse';
|
|
18
|
+
export * from './dtos/ExpedienteIdentityResponse';
|
|
18
19
|
|
|
19
20
|
// DTOs internos (inter-service)
|
|
20
21
|
export * from './dtos/internal/CreditProfileResponse';
|