@fiado/type-kit 3.315.0 → 3.316.1
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/card/CardIssuanceBySideRequest.test.ts +42 -0
- package/_test_/unit/onboarding/ExpedienteUpdatedMessage.test.ts +57 -0
- package/bin/benefitCenter/enums/BenefitFlowEnum.d.ts +11 -0
- package/bin/benefitCenter/enums/BenefitFlowEnum.js +15 -0
- package/bin/card/dtos/CardIssuanceBySideRequest.d.ts +16 -0
- package/bin/card/dtos/CardIssuanceBySideRequest.js +43 -0
- package/bin/card/dtos/CardIssuanceBySideResponse.d.ts +7 -0
- package/bin/card/dtos/CardIssuanceBySideResponse.js +6 -0
- package/bin/card/enums/issuance/CardIssuanceResultEnum.d.ts +4 -0
- package/bin/card/enums/issuance/CardIssuanceResultEnum.js +8 -0
- package/bin/card/enums/issuance/CardIssuanceSkipReasonEnum.d.ts +6 -0
- package/bin/card/enums/issuance/CardIssuanceSkipReasonEnum.js +10 -0
- package/bin/card/enums/issuance/CardIssuanceTriggerEnum.d.ts +5 -0
- package/bin/card/enums/issuance/CardIssuanceTriggerEnum.js +9 -0
- package/bin/card/index.d.ts +5 -0
- package/bin/card/index.js +5 -0
- package/bin/identity/dtos/InfoSelfVerifiedFields.d.ts +25 -0
- package/bin/identity/dtos/InfoSelfVerifiedFields.js +2 -0
- package/bin/identity/dtos/PeopleResponse.d.ts +7 -0
- package/bin/identity/dtos/PeopleUpdateRequest.d.ts +7 -0
- package/bin/identity/enums/SelfieSourceEnum.d.ts +10 -0
- package/bin/identity/enums/SelfieSourceEnum.js +14 -0
- package/bin/identity/index.d.ts +1 -0
- package/bin/identity/index.js +1 -0
- package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +11 -0
- package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.js +46 -0
- package/bin/loanCredit/enums/ClientLevelEnum.d.ts +11 -0
- package/bin/loanCredit/enums/ClientLevelEnum.js +15 -0
- package/bin/onboarding/dtos/ExpedienteUpdatedMessage.d.ts +22 -0
- package/bin/onboarding/dtos/ExpedienteUpdatedMessage.js +49 -0
- package/bin/onboarding/enums/ExpedienteUpdatedSourceEnum.d.ts +7 -0
- package/bin/onboarding/enums/ExpedienteUpdatedSourceEnum.js +11 -0
- package/bin/onboarding/index.d.ts +2 -0
- package/bin/onboarding/index.js +3 -0
- package/bin/retailCards/dtos/requests/AssignCardRequest.d.ts +6 -0
- package/bin/retailCards/dtos/requests/AssignCardRequest.js +30 -0
- package/bin/retailCards/dtos/requests/CancelCardRequest.d.ts +5 -0
- package/bin/retailCards/dtos/requests/CancelCardRequest.js +22 -0
- package/bin/retailCards/dtos/responses/RetailCardResponse.d.ts +12 -0
- package/bin/retailCards/dtos/responses/RetailCardResponse.js +2 -0
- package/bin/retailCards/enums/CardBatchStatusEnum.d.ts +17 -0
- package/bin/retailCards/enums/CardBatchStatusEnum.js +21 -0
- package/bin/retailCards/enums/CardCancelReasonEnum.d.ts +13 -0
- package/bin/retailCards/enums/CardCancelReasonEnum.js +17 -0
- package/bin/retailCards/enums/RetailCardStatusEnum.d.ts +13 -0
- package/bin/retailCards/enums/RetailCardStatusEnum.js +17 -0
- package/bin/retailCards/events/RetailCardAssignedV1.d.ts +10 -0
- package/bin/retailCards/events/RetailCardAssignedV1.js +2 -0
- package/bin/retailCards/events/RetailCardCancelledV1.d.ts +9 -0
- package/bin/retailCards/events/RetailCardCancelledV1.js +2 -0
- package/bin/retailCards/events/RetailCardReleasedV1.d.ts +7 -0
- package/bin/retailCards/events/RetailCardReleasedV1.js +2 -0
- package/bin/retailWizard/dtos/requests/CompleteSaleRequest.d.ts +9 -0
- package/bin/retailWizard/dtos/requests/CompleteSaleRequest.js +29 -0
- package/bin/retailWizard/dtos/requests/MarkPcfCardDeliveredRequest.d.ts +4 -0
- package/bin/retailWizard/dtos/requests/MarkPcfCardDeliveredRequest.js +23 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +6 -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/CancelFundingRequest.d.ts +11 -0
- package/bin/walletFunding/dtos/CancelFundingRequest.js +33 -0
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +14 -0
- package/bin/walletFunding/dtos/CancelFundingResponse.js +12 -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/CreditWalletFundingRequest.d.ts +14 -0
- package/bin/walletFunding/dtos/CreditWalletFundingRequest.js +6 -0
- package/package.json +1 -1
- package/src/card/dtos/CardIssuanceBySideRequest.ts +29 -0
- package/src/card/dtos/CardIssuanceBySideResponse.ts +8 -0
- package/src/card/enums/issuance/CardIssuanceResultEnum.ts +4 -0
- package/src/card/enums/issuance/CardIssuanceSkipReasonEnum.ts +6 -0
- package/src/card/enums/issuance/CardIssuanceTriggerEnum.ts +5 -0
- package/src/card/index.ts +5 -0
- package/src/identity/dtos/InfoSelfVerifiedFields.ts +25 -0
- package/src/identity/dtos/PeopleResponse.ts +7 -0
- package/src/identity/dtos/PeopleUpdateRequest.ts +7 -0
- package/src/identity/index.ts +1 -0
- package/src/onboarding/dtos/ExpedienteUpdatedMessage.ts +37 -0
- package/src/onboarding/enums/ExpedienteUpdatedSourceEnum.ts +7 -0
- package/src/onboarding/index.ts +4 -0
- package/src/walletFunding/dtos/CreditWalletFundingRequest.ts +14 -0
|
@@ -6,6 +6,7 @@ import { CPStatusEnum } from '../enums/CPStatusEnum';
|
|
|
6
6
|
import { InfoSelfVerifiedStatus } from '../enums/InfoSelfVerifiedStatus';
|
|
7
7
|
import { SexDocument } from '../enums/SexDocument';
|
|
8
8
|
import { IdentificationDocument } from './IdentificationDocument';
|
|
9
|
+
import { InfoSelfVerifiedFields } from './InfoSelfVerifiedFields';
|
|
9
10
|
import { ManualApproval } from './ManualApproval';
|
|
10
11
|
import { PeopleName } from './PeopleName';
|
|
11
12
|
|
|
@@ -99,6 +100,12 @@ export class PeopleResponse {
|
|
|
99
100
|
MEX_Signed:boolean | null;
|
|
100
101
|
USA_Beneficiaries:boolean | null;
|
|
101
102
|
USA_InfoSelfVerified:InfoSelfVerifiedStatus;
|
|
103
|
+
/**
|
|
104
|
+
* Qué campo marcó el usuario como incorrecto. Detalla a los dos `*_InfoSelfVerified`.
|
|
105
|
+
* Opcional a diferencia del resto: los expedientes anteriores a la confirmación por campo
|
|
106
|
+
* no lo tienen.
|
|
107
|
+
*/
|
|
108
|
+
infoSelfVerifiedFields?:InfoSelfVerifiedFields;
|
|
102
109
|
USA_Signed:boolean | null;
|
|
103
110
|
older18:boolean | null;
|
|
104
111
|
signature:boolean;
|
|
@@ -4,6 +4,7 @@ import { CPStatusEnum } from "../enums/CPStatusEnum";
|
|
|
4
4
|
import { InfoSelfVerifiedStatus } from "../enums/InfoSelfVerifiedStatus";
|
|
5
5
|
import { SexDocument } from "../enums/SexDocument";
|
|
6
6
|
import { IdentificationDocument } from "./IdentificationDocument";
|
|
7
|
+
import { InfoSelfVerifiedFields } from "./InfoSelfVerifiedFields";
|
|
7
8
|
import { ManualApproval } from "./ManualApproval";
|
|
8
9
|
import { PeopleName } from "./PeopleName";
|
|
9
10
|
|
|
@@ -90,6 +91,12 @@ export class PeopleUpdateRequest {
|
|
|
90
91
|
pepLevel?: string | null;
|
|
91
92
|
USA_InfoSelfVerified?: InfoSelfVerifiedStatus;
|
|
92
93
|
MEX_InfoSelfVerified?: InfoSelfVerifiedStatus;
|
|
94
|
+
/**
|
|
95
|
+
* Qué campo marcó el usuario como incorrecto al revisar sus datos. Lo manda la app en el PUT y
|
|
96
|
+
* de acá se derivan los dos `*_InfoSelfVerified` de arriba: un lado se confirma cuando todas
|
|
97
|
+
* sus banderas están en `true`, y pide corrección si alguna está en `false`.
|
|
98
|
+
*/
|
|
99
|
+
infoSelfVerifiedFields?: InfoSelfVerifiedFields;
|
|
93
100
|
infoSelfVerified?: InfoSelfVerifiedStatus;
|
|
94
101
|
beneficialOwner?: string | null;
|
|
95
102
|
weeklyIncomeUSD?: string | null;
|
package/src/identity/index.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export * from './dtos/IdentificationDocument'
|
|
4
4
|
export * from './dtos/ManualApproval';
|
|
5
5
|
export * from './dtos/PeopleCreateRequest';
|
|
6
|
+
export * from './dtos/InfoSelfVerifiedFields';
|
|
6
7
|
export * from './dtos/PeopleResponse';
|
|
7
8
|
export * from './dtos/PeopleName';
|
|
8
9
|
export * from './dtos/TypeOfDocument';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Equals, IsEnum, IsISO8601, IsUUID, Matches } from "class-validator";
|
|
2
|
+
import { ExpedienteUpdatedSourceEnum } from "../enums/ExpedienteUpdatedSourceEnum";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Evento EXPEDIENTE_UPDATED (cola OnboardingReadinessQueue).
|
|
6
|
+
* Producer: fiado-identity-lambda (tras cada escritura exitosa de People/ARC).
|
|
7
|
+
* Consumer: onboarding-business (ExpedienteUpdatedSubscriber, DEC-025).
|
|
8
|
+
* Payload anémico a propósito: el subscriber SIEMPRE lee el expediente fresco;
|
|
9
|
+
* nada de datos de negocio acá para que un mensaje viejo no decida con datos viejos.
|
|
10
|
+
*/
|
|
11
|
+
export class ExpedienteUpdatedMessage {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Discriminador. La cola es dedicada hoy, pero agregarlo ahora es gratis y
|
|
15
|
+
* agregarlo después de publicar sería breaking (mismo criterio que
|
|
16
|
+
* KycStepCompletedV1.eventType).
|
|
17
|
+
*/
|
|
18
|
+
@Equals("EXPEDIENTE_UPDATED")
|
|
19
|
+
eventType: "EXPEDIENTE_UPDATED";
|
|
20
|
+
|
|
21
|
+
@IsUUID()
|
|
22
|
+
eventId: string;
|
|
23
|
+
|
|
24
|
+
@IsUUID()
|
|
25
|
+
directoryId: string;
|
|
26
|
+
|
|
27
|
+
@IsUUID()
|
|
28
|
+
peopleId: string;
|
|
29
|
+
|
|
30
|
+
@IsEnum(ExpedienteUpdatedSourceEnum)
|
|
31
|
+
source: ExpedienteUpdatedSourceEnum;
|
|
32
|
+
|
|
33
|
+
/** ISO-8601 estricto y en UTC (sufijo Z) — @IsISO8601 pelado acepta fechas sin hora y offsets locales (precedente: KycStepCompletedV1). */
|
|
34
|
+
@IsISO8601({ strict: true })
|
|
35
|
+
@Matches(/Z$/, { message: "occurredAt debe estar en UTC (sufijo Z)" })
|
|
36
|
+
occurredAt: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Qué write-path de fiado-identity-lambda originó el evento (solo diagnóstico — el subscriber no decide por source). */
|
|
2
|
+
export enum ExpedienteUpdatedSourceEnum {
|
|
3
|
+
PEOPLE = "PEOPLE",
|
|
4
|
+
ACCOUNT_REQUIREMENT_CONTROL = "ACCOUNT_REQUIREMENT_CONTROL",
|
|
5
|
+
DOCUMENT = "DOCUMENT",
|
|
6
|
+
AGENT = "AGENT",
|
|
7
|
+
}
|
package/src/onboarding/index.ts
CHANGED
|
@@ -4,6 +4,10 @@ export * from './enums/OnboardingStepStatusEnum';
|
|
|
4
4
|
export * from './enums/OnboardingAccountStatusEnum';
|
|
5
5
|
export * from './enums/OnboardingAccountReasonEnum';
|
|
6
6
|
export * from './enums/OnboardingAccountMessageKeyEnum';
|
|
7
|
+
export * from './enums/ExpedienteUpdatedSourceEnum';
|
|
7
8
|
|
|
8
9
|
// Response DTOs
|
|
9
10
|
export * from './dtos/responses/OnboardingStepsResponse';
|
|
11
|
+
|
|
12
|
+
// Queue messages
|
|
13
|
+
export * from './dtos/ExpedienteUpdatedMessage';
|
|
@@ -21,4 +21,18 @@ export class CreditWalletFundingRequest {
|
|
|
21
21
|
@IsOptional() @IsString() @MaxLength(64) center?: string;
|
|
22
22
|
/** Si viene, la FiadoTx se crea con este folio en vez de generar uno nuevo. */
|
|
23
23
|
@IsOptional() @IsString() @MaxLength(64) processorTransactionNumber?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Producto de `ProductCatalog_GT` con el que tarifar este fondeo — de ahi
|
|
26
|
+
* salen la comision que Fiado le cobra al cliente y su IVA.
|
|
27
|
+
*
|
|
28
|
+
* Lo decide el CONNECTOR y no el processor porque la tarifa depende del
|
|
29
|
+
* canal, y solo el connector ve donde pago el cliente: el proveedor manda
|
|
30
|
+
* el comercio en el webhook del cash-in. Ej. `SP_CASH_IN` (cuota fija fuera
|
|
31
|
+
* de OXXO) vs `SP_CASH_IN_OXXO` (porcentual en OXXO).
|
|
32
|
+
*
|
|
33
|
+
* Opcional por compatibilidad: los callers que no lo mandan siguen cayendo
|
|
34
|
+
* al producto por defecto del processor (`MEX_WALLET_FUNDING_CREDIT`), que
|
|
35
|
+
* es el que usa Equality/Passport hoy.
|
|
36
|
+
*/
|
|
37
|
+
@IsOptional() @IsString() @MaxLength(64) productCatalogId?: string;
|
|
24
38
|
}
|