@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.
Files changed (50) hide show
  1. package/bin/aiEngine/dtos/internal/AiAnalyzeRequest.d.ts +5 -0
  2. package/bin/aiEngine/dtos/internal/AiAnalyzeRequest.js +31 -0
  3. package/bin/aiEngine/dtos/internal/AiAnalyzeResponse.d.ts +6 -0
  4. package/bin/aiEngine/dtos/internal/AiAnalyzeResponse.js +6 -0
  5. package/bin/aiEngine/index.d.ts +2 -0
  6. package/bin/aiEngine/index.js +19 -0
  7. package/bin/card/enums/PinChangedStatus.d.ts +6 -0
  8. package/bin/card/enums/PinChangedStatus.js +10 -0
  9. package/bin/card/enums/Status.d.ts +2 -1
  10. package/bin/card/enums/Status.js +1 -0
  11. package/bin/card/enums/UpdateKey.d.ts +2 -1
  12. package/bin/card/enums/UpdateKey.js +1 -0
  13. package/bin/card/index.d.ts +1 -0
  14. package/bin/card/index.js +1 -0
  15. package/bin/comission-business/dtos/CreatePayableRequest.d.ts +1 -1
  16. package/bin/comission-business/dtos/CreatePaymentMadeRequest.d.ts +1 -1
  17. package/bin/comission-business/dtos/UpdatePaymentMadeRequest.d.ts +0 -1
  18. package/bin/comission-business/enums/DepositStatusEnum.d.ts +2 -1
  19. package/bin/comission-business/enums/DepositStatusEnum.js +2 -1
  20. package/bin/comission-business/enums/PaymentStatusEnum.d.ts +3 -2
  21. package/bin/comission-business/enums/PaymentStatusEnum.js +3 -2
  22. package/bin/credit/dtos/ExpedienteIdentityResponse.d.ts +40 -0
  23. package/bin/credit/dtos/ExpedienteIdentityResponse.js +25 -0
  24. package/bin/credit/index.d.ts +1 -0
  25. package/bin/credit/index.js +1 -0
  26. package/bin/index.d.ts +2 -0
  27. package/bin/index.js +3 -1
  28. package/bin/platformErrorEvents/index.d.ts +1 -0
  29. package/bin/platformErrorEvents/index.js +3 -1
  30. package/bin/platformErrorEvents/severity/card-business.severity.d.ts +1 -0
  31. package/bin/platformErrorEvents/severity/card-business.severity.js +25 -0
  32. package/bin/productCatalog/enums/ProductTypeEnum.d.ts +3 -1
  33. package/bin/productCatalog/enums/ProductTypeEnum.js +2 -0
  34. package/bin/sentry/dtos/SentryAnalysisResult.d.ts +13 -0
  35. package/bin/sentry/dtos/SentryAnalysisResult.js +6 -0
  36. package/bin/sentry/dtos/SentryIssueAnalyzeRequest.d.ts +3 -0
  37. package/bin/sentry/dtos/SentryIssueAnalyzeRequest.js +21 -0
  38. package/bin/sentry/dtos/SentryIssueAnalyzeResponse.d.ts +6 -0
  39. package/bin/sentry/dtos/SentryIssueAnalyzeResponse.js +6 -0
  40. package/bin/sentry/index.d.ts +3 -0
  41. package/bin/sentry/index.js +20 -0
  42. package/bin/servicePayment/dtos/ServicePaymentRequest.d.ts +3 -1
  43. package/bin/servicePayment/dtos/ServicePaymentRequest.js +9 -1
  44. package/bin/stpSpei/enums/BusinessNameEnum.d.ts +2 -1
  45. package/bin/stpSpei/enums/BusinessNameEnum.js +1 -0
  46. package/bin/transaction/dtos/TransactionCreateRequest.d.ts +1 -0
  47. package/bin/transaction/dtos/TransactionCreateRequest.js +5 -0
  48. package/package.json +1 -1
  49. package/src/credit/dtos/ExpedienteIdentityResponse.ts +44 -0
  50. package/src/credit/index.ts +1 -0
@@ -0,0 +1,5 @@
1
+ export declare class AiAnalyzeRequest {
2
+ prompt: string;
3
+ systemPrompt?: string;
4
+ modelId?: string;
5
+ }
@@ -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,6 @@
1
+ export declare class AiAnalyzeResponse {
2
+ content: string;
3
+ modelId: string;
4
+ inputTokens: number;
5
+ outputTokens: number;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AiAnalyzeResponse = void 0;
4
+ class AiAnalyzeResponse {
5
+ }
6
+ exports.AiAnalyzeResponse = AiAnalyzeResponse;
@@ -0,0 +1,2 @@
1
+ export * from './dtos/internal/AiAnalyzeRequest';
2
+ export * from './dtos/internal/AiAnalyzeResponse';
@@ -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,6 @@
1
+ export declare enum PinChangedStatus {
2
+ PENDING_ATM_CONFIRMATION = "PENDING_ATM_CONFIRMATION",
3
+ ATM_CONFIRMATION_FIRST = "ATM_CONFIRMATION_FIRST",
4
+ ATM_CONFIRMATION_SECOND = "ATM_CONFIRMATION_SECOND",
5
+ ND = "ND"
6
+ }
@@ -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 = {}));
@@ -2,5 +2,6 @@ export declare enum Status {
2
2
  ACTIVE = "ACTIVE",
3
3
  PENDING = "PENDING",
4
4
  PAUSED = "PAUSED",
5
- CANCELLED = "CANCELLED"
5
+ CANCELLED = "CANCELLED",
6
+ PIN_BLOCKED = "PIN_BLOCKED"
6
7
  }
@@ -7,4 +7,5 @@ var Status;
7
7
  Status["PENDING"] = "PENDING";
8
8
  Status["PAUSED"] = "PAUSED";
9
9
  Status["CANCELLED"] = "CANCELLED";
10
+ Status["PIN_BLOCKED"] = "PIN_BLOCKED";
10
11
  })(Status || (exports.Status = Status = {}));
@@ -1,4 +1,5 @@
1
1
  export declare enum UpdateKey {
2
2
  CHANGE_STATUS = "CHANGE_STATUS",
3
- CHANGE_PIN = "CHANGE_PIN"
3
+ CHANGE_PIN = "CHANGE_PIN",
4
+ CHANGE_PIN_AVAILABLE = "CHANGE_PIN_AVAILABLE"
4
5
  }
@@ -5,4 +5,5 @@ var UpdateKey;
5
5
  (function (UpdateKey) {
6
6
  UpdateKey["CHANGE_STATUS"] = "CHANGE_STATUS";
7
7
  UpdateKey["CHANGE_PIN"] = "CHANGE_PIN";
8
+ UpdateKey["CHANGE_PIN_AVAILABLE"] = "CHANGE_PIN_AVAILABLE";
8
9
  })(UpdateKey || (exports.UpdateKey = UpdateKey = {}));
@@ -64,3 +64,4 @@ export * from './enums/issuance/ObservationStatus';
64
64
  export * from './enums/ReplaceBankAccountCardReasonEnum';
65
65
  export * from './enums/CardReasonStatus';
66
66
  export * from './enums/KycReason';
67
+ export * from './enums/PinChangedStatus';
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);
@@ -1,6 +1,6 @@
1
1
  import { ReportConceptEnum } from "../enums/ReportConceptEnum";
2
2
  export interface CreatePayableRequest {
3
- directoryIdVendor: string;
3
+ directoryIdSponsor: string;
4
4
  directoryIdClient?: string;
5
5
  concept: ReportConceptEnum;
6
6
  dateAccountCreate?: string;
@@ -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,7 +3,6 @@ import { PaymentStatusEnum } from "../enums/PaymentStatusEnum";
3
3
  export interface UpdatePaymentMadeRequest {
4
4
  amount?: number;
5
5
  currency?: string;
6
- period?: string;
7
6
  method?: PaymentMethodEnum;
8
7
  status?: PaymentStatusEnum;
9
8
  referencePaid?: string;
@@ -1,6 +1,7 @@
1
1
  export declare enum DepositStatusEnum {
2
- INCLUDE = "INCLUDE",
2
+ PENDING = "PENDING",
3
3
  EXCLUDE = "EXCLUDE",
4
+ PARTIAL = "PARTIAL",
4
5
  PAID = "PAID",
5
6
  RECONCILED = "RECONCILED"
6
7
  }
@@ -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["INCLUDE"] = "INCLUDE";
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 = {}));
@@ -1,4 +1,5 @@
1
1
  export declare enum PaymentStatusEnum {
2
- SUCCESSFUL = "SUCCESSFUL",
3
- FAILED = "FAILED"
2
+ PENDING = "PENDING",
3
+ PAID = "PAID",
4
+ NOT_APPLICABLE = "NOT_APPLICABLE"
4
5
  }
@@ -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["SUCCESSFUL"] = "SUCCESSFUL";
7
- PaymentStatusEnum["FAILED"] = "FAILED";
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;
@@ -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';
@@ -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
+ };
@@ -7,5 +7,7 @@ export declare enum ProductTypeEnum {
7
7
  BBVA = "BBVA",
8
8
  FIADO_BUSINESS = "FIADO_BUSINESS",
9
9
  CP = "CP",
10
- CREDIT = "CREDIT"
10
+ CREDIT = "CREDIT",
11
+ MULTICOMM_SERV_SA = "MULTICOMM_SERV_SA",
12
+ MULTICENTER_SERV_SA = "MULTICENTER_SERV_SA"
11
13
  }
@@ -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,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SentryAnalysisResult = void 0;
4
+ class SentryAnalysisResult {
5
+ }
6
+ exports.SentryAnalysisResult = SentryAnalysisResult;
@@ -0,0 +1,3 @@
1
+ export declare class SentryIssueAnalyzeRequest {
2
+ issueId: string;
3
+ }
@@ -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,6 @@
1
+ import { SentryAnalysisResult } from "./SentryAnalysisResult";
2
+ export declare class SentryIssueAnalyzeResponse {
3
+ issueId: string;
4
+ analyzedAt: string;
5
+ analysis: SentryAnalysisResult;
6
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SentryIssueAnalyzeResponse = void 0;
4
+ class SentryIssueAnalyzeResponse {
5
+ }
6
+ exports.SentryIssueAnalyzeResponse = SentryIssueAnalyzeResponse;
@@ -0,0 +1,3 @@
1
+ export * from './dtos/SentryIssueAnalyzeRequest';
2
+ export * from './dtos/SentryIssueAnalyzeResponse';
3
+ export * from './dtos/SentryAnalysisResult';
@@ -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);
@@ -4,7 +4,9 @@ export declare class ServicePaymentRequest {
4
4
  reference: string;
5
5
  productId: string;
6
6
  amount: number;
7
- fee?: number;
7
+ clientCharge?: number;
8
+ fees?: number;
9
+ tax?: number;
8
10
  transactionNumber: string;
9
11
  latitud?: string;
10
12
  longitud?: string;
@@ -42,7 +42,15 @@ __decorate([
42
42
  __decorate([
43
43
  (0, class_validator_1.IsOptional)(),
44
44
  __metadata("design:type", Number)
45
- ], ServicePaymentRequest.prototype, "fee", void 0);
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),
@@ -1,4 +1,5 @@
1
1
  export declare enum BusinessNameEnum {
2
2
  FIADOSA = "FIADOSA",
3
- PAGO_CONFIADO = "PAGO_CONFIADO"
3
+ PAGO_CONFIADO = "PAGO_CONFIADO",
4
+ FIADOINC = "FIADO_INC"
4
5
  }
@@ -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 = {}));
@@ -41,4 +41,5 @@ export declare class TransactionCreateRequest {
41
41
  createdAt: Number;
42
42
  metaDataCode?: string;
43
43
  metaData?: string;
44
+ domFolio?: string;
44
45
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.1.21",
3
+ "version": "3.1.22",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -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
+ }
@@ -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';