@fiado/type-kit 3.57.0 → 3.58.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/cognitoBackofficeConnector/dtos/CreateUserRequest.test.ts +53 -0
- package/bin/cognitoBackofficeConnector/dtos/CreateUserRequest.js +2 -1
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.d.ts +20 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolConfigResponse.js +11 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.d.ts +4 -0
- package/bin/cognitoBackofficeConnector/dtos/PoolsListResponse.js +6 -0
- package/bin/rbac/enums/PoolKind.d.ts +16 -0
- package/bin/rbac/enums/PoolKind.js +20 -0
- package/bin/rbac/index.d.ts +1 -0
- package/bin/rbac/index.js +17 -0
- package/bin/remittance/dtos/RemittanceConfirmRequest.d.ts +41 -0
- package/bin/remittance/dtos/RemittanceSendPreviewResponse.d.ts +15 -0
- package/bin/remittance/dtos/index.d.ts +1 -0
- package/bin/remittance/dtos/index.js +1 -0
- package/package.json +1 -1
- package/src/cognitoBackofficeConnector/dtos/CreateUserRequest.ts +2 -2
- package/src/remittance/dtos/RemittanceConfirmRequest.ts +42 -0
- package/src/remittance/dtos/RemittanceSendPreviewResponse.ts +17 -0
- package/src/remittance/dtos/index.ts +1 -0
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +0 -22
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +0 -91
- package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +0 -19
- package/bin/benefitCenter/dtos/FieldOverrideRequest.js +0 -80
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +0 -9
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +0 -29
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +0 -10
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +0 -14
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +0 -13
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +0 -71
- package/bin/comission-business/dtos/GenerateReportRequest.d.ts +0 -10
- package/bin/comission-business/dtos/GenerateReportResponse.d.ts +0 -6
- package/bin/comission-business/dtos/GenerateReportResponse.js +0 -2
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +0 -5
- package/bin/comission-business/enums/PaymentStatusEnum.js +0 -9
- package/bin/credit/dtos/CreditBannerStateResponse.d.ts +0 -10
- package/bin/credit/dtos/CreditBannerStateResponse.js +0 -6
- package/bin/credit/dtos/CreditDetailResponse.d.ts +0 -23
- package/bin/credit/dtos/CreditDetailResponse.js +0 -6
- package/bin/credit/dtos/CreditEligibilityResponse.d.ts +0 -9
- package/bin/credit/dtos/CreditEligibilityResponse.js +0 -6
- package/bin/credit/dtos/CreditMovementResponse.d.ts +0 -20
- package/bin/credit/dtos/CreditMovementResponse.js +0 -9
- package/bin/credit/dtos/CreditRequestCreate.d.ts +0 -4
- package/bin/credit/dtos/CreditRequestCreate.js +0 -26
- package/bin/credit/dtos/CreditRequestResponse.d.ts +0 -7
- package/bin/credit/dtos/CreditRequestResponse.js +0 -6
- package/bin/credit/dtos/CreditScheduleResponse.d.ts +0 -18
- package/bin/credit/dtos/CreditScheduleResponse.js +0 -9
- package/bin/credit/dtos/CreditStatementResponse.d.ts +0 -11
- package/bin/credit/dtos/CreditStatementResponse.js +0 -9
- package/bin/credit/dtos/EarlyPaymentRequest.d.ts +0 -7
- package/bin/credit/dtos/EarlyPaymentRequest.js +0 -37
- package/bin/credit/dtos/EarlyPaymentResponse.d.ts +0 -11
- package/bin/credit/dtos/EarlyPaymentResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/CreditBalanceRequest.js +0 -21
- package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +0 -11
- package/bin/credit/dtos/internal/CreditCollectionRequest.js +0 -59
- package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +0 -12
- package/bin/credit/dtos/internal/CreditCollectionResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +0 -7
- package/bin/credit/dtos/internal/CreditDisbursementRequest.js +0 -43
- package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditDisbursementResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/CreditProfileRequest.js +0 -23
- package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +0 -5
- package/bin/credit/dtos/internal/CreditReversalRequest.js +0 -31
- package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +0 -7
- package/bin/credit/dtos/internal/CreditReversalResponse.js +0 -6
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +0 -46
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +0 -8
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +0 -6
- package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +0 -3
- package/bin/credit/dtos/internal/DocumentSignRequest.js +0 -21
- package/bin/credit/dtos/internal/LienApplyRequest.d.ts +0 -7
- package/bin/credit/dtos/internal/LienApplyRequest.js +0 -45
- package/bin/credit/enums/CollectionFrequencyEnum.d.ts +0 -5
- package/bin/credit/enums/CollectionFrequencyEnum.js +0 -9
- package/bin/credit/enums/CreditOperationEnum.d.ts +0 -11
- package/bin/credit/enums/CreditOperationEnum.js +0 -15
- package/bin/credit/enums/CreditStatusEnum.d.ts +0 -12
- package/bin/credit/enums/CreditStatusEnum.js +0 -16
- package/bin/credit/enums/DelinquencyLevelEnum.d.ts +0 -9
- package/bin/credit/enums/DelinquencyLevelEnum.js +0 -13
- package/bin/credit/enums/DocumentTypeEnum.d.ts +0 -8
- package/bin/credit/enums/DocumentTypeEnum.js +0 -12
- package/bin/credit/enums/OfferStatusEnum.d.ts +0 -8
- package/bin/credit/enums/OfferStatusEnum.js +0 -12
- package/bin/credit/enums/PaymentTypeEnum.d.ts +0 -9
- package/bin/credit/enums/PaymentTypeEnum.js +0 -13
- package/bin/credit/enums/ReconciliationStatusEnum.d.ts +0 -6
- package/bin/credit/enums/ReconciliationStatusEnum.js +0 -10
- package/bin/credit/enums/TransferStatusEnum.d.ts +0 -8
- package/bin/credit/enums/TransferStatusEnum.js +0 -12
- package/docs/superpowers/plans/2026-05-22-http-client-inversify-v8.md +0 -243
- package/docs/superpowers/specs/2026-05-22-inversify-v8-migration-design.md +0 -191
- /package/bin/{comission-business/dtos/GenerateReportRequest.js → remittance/dtos/RemittanceConfirmRequest.js} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import { plainToInstance } from 'class-transformer';
|
|
3
|
+
import { validate } from 'class-validator';
|
|
4
|
+
import { CreateUserRequest } from '../../../../src/cognitoBackofficeConnector/dtos/CreateUserRequest';
|
|
5
|
+
|
|
6
|
+
describe('CreateUserRequest', () => {
|
|
7
|
+
const valid = {
|
|
8
|
+
userPoolId: 'us-east-1_abc123',
|
|
9
|
+
region: 'us-east-1',
|
|
10
|
+
email: 'user@acme.com',
|
|
11
|
+
tenantId: 'somosfiado',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
it('valida happy path con tenantId slug (0 errores)', async () => {
|
|
15
|
+
const dto = plainToInstance(CreateUserRequest, valid);
|
|
16
|
+
const errors = await validate(dto);
|
|
17
|
+
expect(errors).toEqual([]);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('acepta un tenantId slug con guiones (acme-mx)', async () => {
|
|
21
|
+
const dto = plainToInstance(CreateUserRequest, { ...valid, tenantId: 'acme-mx' });
|
|
22
|
+
const errors = await validate(dto);
|
|
23
|
+
expect(errors.some(e => e.property === 'tenantId')).toBe(false);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('acepta un tenantId con forma de UUID (sigue siendo string válido)', async () => {
|
|
27
|
+
const dto = plainToInstance(CreateUserRequest, {
|
|
28
|
+
...valid,
|
|
29
|
+
tenantId: '11111111-1111-1111-1111-111111111111',
|
|
30
|
+
});
|
|
31
|
+
const errors = await validate(dto);
|
|
32
|
+
expect(errors.some(e => e.property === 'tenantId')).toBe(false);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('falla si tenantId está vacío', async () => {
|
|
36
|
+
const dto = plainToInstance(CreateUserRequest, { ...valid, tenantId: '' });
|
|
37
|
+
const errors = await validate(dto);
|
|
38
|
+
expect(errors.some(e => e.property === 'tenantId')).toBe(true);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it('preserva los campos opcionales legítimos', async () => {
|
|
42
|
+
const dto = plainToInstance(CreateUserRequest, {
|
|
43
|
+
...valid,
|
|
44
|
+
displayName: 'Usuario Demo',
|
|
45
|
+
temporaryPassword: 'Temp1234!',
|
|
46
|
+
suppressInvitationEmail: true,
|
|
47
|
+
});
|
|
48
|
+
const errors = await validate(dto);
|
|
49
|
+
expect(errors).toEqual([]);
|
|
50
|
+
expect(dto.displayName).toBe('Usuario Demo');
|
|
51
|
+
expect(dto.suppressInvitationEmail).toBe(true);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
@@ -40,7 +40,8 @@ __decorate([
|
|
|
40
40
|
], CreateUserRequest.prototype, "displayName", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_transformer_1.Expose)(),
|
|
43
|
-
(0, class_validator_1.
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], CreateUserRequest.prototype, "tenantId", void 0);
|
|
46
47
|
__decorate([
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PoolKind } from '../../rbac/enums/PoolKind';
|
|
2
|
+
/**
|
|
3
|
+
* Shape del `PoolConfigRow` expuesto al caller (BFF M18 / otros lambdas Fiado).
|
|
4
|
+
* Refleja la configuración de un Cognito User Pool registrado en la tabla
|
|
5
|
+
* `PoolConfigs_GT` del lambda `cognito-backoffice-connector`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PoolConfigResponse {
|
|
8
|
+
userPoolId: string;
|
|
9
|
+
userPoolArn: string;
|
|
10
|
+
region: string;
|
|
11
|
+
poolKind: PoolKind;
|
|
12
|
+
displayName: string;
|
|
13
|
+
appClients: Record<string, {
|
|
14
|
+
clientId: string;
|
|
15
|
+
clientName: string;
|
|
16
|
+
}>;
|
|
17
|
+
status: 'active' | 'deprecated';
|
|
18
|
+
createdAt: number;
|
|
19
|
+
updatedAt: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PoolConfigResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Shape del `PoolConfigRow` expuesto al caller (BFF M18 / otros lambdas Fiado).
|
|
6
|
+
* Refleja la configuración de un Cognito User Pool registrado en la tabla
|
|
7
|
+
* `PoolConfigs_GT` del lambda `cognito-backoffice-connector`.
|
|
8
|
+
*/
|
|
9
|
+
class PoolConfigResponse {
|
|
10
|
+
}
|
|
11
|
+
exports.PoolConfigResponse = PoolConfigResponse;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipo de User Pool de Cognito desde la perspectiva del modelo RBAC Fiado.
|
|
3
|
+
*
|
|
4
|
+
* Origen: spec del proyecto `cognito-backoffice-connector` (Fase 0, componente 01
|
|
5
|
+
* documento `docs/superpowers/specs/2026-05-26-cognito-connector-decisiones-pendientes-design.md`).
|
|
6
|
+
*
|
|
7
|
+
* Decisión (TD-003): el proyecto converge en estos 2 valores. El documento componente 03
|
|
8
|
+
* lista 3 valores (incluyendo una variante adicional) pero queda como outlier — la
|
|
9
|
+
* decisión vigente en los 6 docs restantes y en el plan de implementación es 2 valores:
|
|
10
|
+
* - BACKOFFICE_PLATFORM — pool del backoffice de plataforma (cross-tenant)
|
|
11
|
+
* - BACKOFFICE_TENANT — pool por tenant (multi-tenant isolation)
|
|
12
|
+
*/
|
|
13
|
+
export declare enum PoolKind {
|
|
14
|
+
BACKOFFICE_PLATFORM = "BACKOFFICE_PLATFORM",
|
|
15
|
+
BACKOFFICE_TENANT = "BACKOFFICE_TENANT"
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PoolKind = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Tipo de User Pool de Cognito desde la perspectiva del modelo RBAC Fiado.
|
|
6
|
+
*
|
|
7
|
+
* Origen: spec del proyecto `cognito-backoffice-connector` (Fase 0, componente 01
|
|
8
|
+
* documento `docs/superpowers/specs/2026-05-26-cognito-connector-decisiones-pendientes-design.md`).
|
|
9
|
+
*
|
|
10
|
+
* Decisión (TD-003): el proyecto converge en estos 2 valores. El documento componente 03
|
|
11
|
+
* lista 3 valores (incluyendo una variante adicional) pero queda como outlier — la
|
|
12
|
+
* decisión vigente en los 6 docs restantes y en el plan de implementación es 2 valores:
|
|
13
|
+
* - BACKOFFICE_PLATFORM — pool del backoffice de plataforma (cross-tenant)
|
|
14
|
+
* - BACKOFFICE_TENANT — pool por tenant (multi-tenant isolation)
|
|
15
|
+
*/
|
|
16
|
+
var PoolKind;
|
|
17
|
+
(function (PoolKind) {
|
|
18
|
+
PoolKind["BACKOFFICE_PLATFORM"] = "BACKOFFICE_PLATFORM";
|
|
19
|
+
PoolKind["BACKOFFICE_TENANT"] = "BACKOFFICE_TENANT";
|
|
20
|
+
})(PoolKind || (exports.PoolKind = PoolKind = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums/PoolKind';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./enums/PoolKind"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sobre pre-armado por el backend (benefits) que el front reenvía **verbatim** al
|
|
3
|
+
* procesador `POST /benefitsMarketplace/authorize` para confirmar el envío (F6).
|
|
4
|
+
*
|
|
5
|
+
* Es un subconjunto de `AuthorizeBenefitsMarketplaceTransactionRequest`: el backend
|
|
6
|
+
* llena todo lo que deriva del corredor del beneficiario (`leafId`, `productId`,
|
|
7
|
+
* `amount`, ...) más la taxonomía del marketplace (`benefitId`, `productCatalogId`,
|
|
8
|
+
* `moduleName`). El front **solo agrega `inputs.idempotencyKey`** (que genera él, 1:1
|
|
9
|
+
* con el `previewRef`) antes de postear. El front NO debe construir ni decodificar
|
|
10
|
+
* ninguno de estos campos — los trata como tokens opacos.
|
|
11
|
+
*/
|
|
12
|
+
export interface RemittanceConfirmRequest {
|
|
13
|
+
/** Producto del catálogo del marketplace (ProductCatalog_GT). Constante para remesas: `INTERNATIONAL_REMITTANCE`. */
|
|
14
|
+
productCatalogId: string;
|
|
15
|
+
/** Benefit que aloja remesas en el árbol del marketplace (ej. `ben-7`). */
|
|
16
|
+
benefitId: string;
|
|
17
|
+
/** productId del corredor — monto libre (ej. `GT#GCA10#VAR`). */
|
|
18
|
+
productId: string;
|
|
19
|
+
/** Módulo conector que ejecuta el pago (`uniteller-connector`). */
|
|
20
|
+
moduleName: string;
|
|
21
|
+
/** leafId base64url del corredor: `base64url("<moduleName>::<countryISO>#<payerCode>#<receptionMethodName>")`. */
|
|
22
|
+
leafId: string;
|
|
23
|
+
/** Referencia del beneficiario destino (ej. `BENE#1884512`). */
|
|
24
|
+
reference: string;
|
|
25
|
+
/** Monto USD total **congelado** a debitar del wallet (== total del preview). */
|
|
26
|
+
amount: number;
|
|
27
|
+
/** Moneda de cobro en ISO numérico — siempre USD (`840`) para remesas. */
|
|
28
|
+
currencyId: string;
|
|
29
|
+
/** Datos específicos del módulo que el procesador reenvía al connector. */
|
|
30
|
+
inputs: RemittanceConfirmInputs;
|
|
31
|
+
}
|
|
32
|
+
export interface RemittanceConfirmInputs {
|
|
33
|
+
/** `transactionInternalReference` de UNIR (sale del preview). Requerido para el confirm. */
|
|
34
|
+
previewRef: string;
|
|
35
|
+
/**
|
|
36
|
+
* Idempotencia del tramo mobile→procesador. **Lo genera el front** en el tap de
|
|
37
|
+
* confirmar, 1:1 con el `previewRef`: si re-previewa, nuevo `previewRef` ⇒ nuevo
|
|
38
|
+
* `idempotencyKey`. El backend lo deja vacío en el sobre.
|
|
39
|
+
*/
|
|
40
|
+
idempotencyKey?: string;
|
|
41
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RemittanceConfirmRequest } from "./RemittanceConfirmRequest";
|
|
1
2
|
export interface RemittanceBeneficiaryDisplay {
|
|
2
3
|
name: string;
|
|
3
4
|
bank?: string;
|
|
@@ -15,4 +16,18 @@ export declare class RemittanceSendPreviewResponse {
|
|
|
15
16
|
beneficiaryDisplay: RemittanceBeneficiaryDisplay;
|
|
16
17
|
/** Epoch ms. Cache 10 min en RemittanceCache_GT (D-F5.4). */
|
|
17
18
|
expiresAt: number;
|
|
19
|
+
/**
|
|
20
|
+
* serviceId del corredor resuelto por el connector: `<countryISO>#<payerCode>#<receptionMethodName>`
|
|
21
|
+
* (ej. `GT#GCA10#Cash Pickup`). Insumo para que benefits codifique el `leafId`.
|
|
22
|
+
* Lo llena el connector; no es para consumo directo del front.
|
|
23
|
+
*/
|
|
24
|
+
serviceId?: string;
|
|
25
|
+
/** productId del corredor (monto libre, ej. `GT#GCA10#VAR`). Lo llena el connector. */
|
|
26
|
+
productId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Sobre pre-armado por benefits que el front reenvía al procesador para confirmar (F6).
|
|
29
|
+
* Lo completa benefits (encode del `leafId` + taxonomía del marketplace); el connector
|
|
30
|
+
* lo deja vacío. Ver {@link RemittanceConfirmRequest}.
|
|
31
|
+
*/
|
|
32
|
+
confirmRequest?: RemittanceConfirmRequest;
|
|
18
33
|
}
|
|
@@ -10,6 +10,7 @@ export * from "./RemittanceQuoteRequest";
|
|
|
10
10
|
export * from "./RemittanceQuoteResponse";
|
|
11
11
|
export * from "./RemittanceSendPreviewRequest";
|
|
12
12
|
export * from "./RemittanceSendPreviewResponse";
|
|
13
|
+
export * from "./RemittanceConfirmRequest";
|
|
13
14
|
export * from "./RemittancePayRequest";
|
|
14
15
|
export * from "./RemittancePayResponse";
|
|
15
16
|
export * from "./RemittanceTransaction";
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./RemittanceQuoteRequest"), exports);
|
|
|
26
26
|
__exportStar(require("./RemittanceQuoteResponse"), exports);
|
|
27
27
|
__exportStar(require("./RemittanceSendPreviewRequest"), exports);
|
|
28
28
|
__exportStar(require("./RemittanceSendPreviewResponse"), exports);
|
|
29
|
+
__exportStar(require("./RemittanceConfirmRequest"), exports);
|
|
29
30
|
__exportStar(require("./RemittancePayRequest"), exports);
|
|
30
31
|
__exportStar(require("./RemittancePayResponse"), exports);
|
|
31
32
|
__exportStar(require("./RemittanceTransaction"), exports);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsBoolean, IsEmail, IsNotEmpty, IsOptional, IsString
|
|
2
|
+
import { IsBoolean, IsEmail, IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|
3
3
|
|
|
4
4
|
export class CreateUserRequest {
|
|
5
5
|
@Expose() @IsString() @IsNotEmpty() userPoolId!: string;
|
|
6
6
|
@Expose() @IsString() @IsNotEmpty() region!: string;
|
|
7
7
|
@Expose() @IsEmail() email!: string;
|
|
8
8
|
@Expose() @IsOptional() @IsString() displayName?: string;
|
|
9
|
-
@Expose() @
|
|
9
|
+
@Expose() @IsString() @IsNotEmpty() tenantId!: string;
|
|
10
10
|
@Expose() @IsOptional() @IsString() temporaryPassword?: string;
|
|
11
11
|
@Expose() @IsOptional() @IsBoolean() suppressInvitationEmail?: boolean;
|
|
12
12
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sobre pre-armado por el backend (benefits) que el front reenvía **verbatim** al
|
|
3
|
+
* procesador `POST /benefitsMarketplace/authorize` para confirmar el envío (F6).
|
|
4
|
+
*
|
|
5
|
+
* Es un subconjunto de `AuthorizeBenefitsMarketplaceTransactionRequest`: el backend
|
|
6
|
+
* llena todo lo que deriva del corredor del beneficiario (`leafId`, `productId`,
|
|
7
|
+
* `amount`, ...) más la taxonomía del marketplace (`benefitId`, `productCatalogId`,
|
|
8
|
+
* `moduleName`). El front **solo agrega `inputs.idempotencyKey`** (que genera él, 1:1
|
|
9
|
+
* con el `previewRef`) antes de postear. El front NO debe construir ni decodificar
|
|
10
|
+
* ninguno de estos campos — los trata como tokens opacos.
|
|
11
|
+
*/
|
|
12
|
+
export interface RemittanceConfirmRequest {
|
|
13
|
+
/** Producto del catálogo del marketplace (ProductCatalog_GT). Constante para remesas: `INTERNATIONAL_REMITTANCE`. */
|
|
14
|
+
productCatalogId: string;
|
|
15
|
+
/** Benefit que aloja remesas en el árbol del marketplace (ej. `ben-7`). */
|
|
16
|
+
benefitId: string;
|
|
17
|
+
/** productId del corredor — monto libre (ej. `GT#GCA10#VAR`). */
|
|
18
|
+
productId: string;
|
|
19
|
+
/** Módulo conector que ejecuta el pago (`uniteller-connector`). */
|
|
20
|
+
moduleName: string;
|
|
21
|
+
/** leafId base64url del corredor: `base64url("<moduleName>::<countryISO>#<payerCode>#<receptionMethodName>")`. */
|
|
22
|
+
leafId: string;
|
|
23
|
+
/** Referencia del beneficiario destino (ej. `BENE#1884512`). */
|
|
24
|
+
reference: string;
|
|
25
|
+
/** Monto USD total **congelado** a debitar del wallet (== total del preview). */
|
|
26
|
+
amount: number;
|
|
27
|
+
/** Moneda de cobro en ISO numérico — siempre USD (`840`) para remesas. */
|
|
28
|
+
currencyId: string;
|
|
29
|
+
/** Datos específicos del módulo que el procesador reenvía al connector. */
|
|
30
|
+
inputs: RemittanceConfirmInputs;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface RemittanceConfirmInputs {
|
|
34
|
+
/** `transactionInternalReference` de UNIR (sale del preview). Requerido para el confirm. */
|
|
35
|
+
previewRef: string;
|
|
36
|
+
/**
|
|
37
|
+
* Idempotencia del tramo mobile→procesador. **Lo genera el front** en el tap de
|
|
38
|
+
* confirmar, 1:1 con el `previewRef`: si re-previewa, nuevo `previewRef` ⇒ nuevo
|
|
39
|
+
* `idempotencyKey`. El backend lo deja vacío en el sobre.
|
|
40
|
+
*/
|
|
41
|
+
idempotencyKey?: string;
|
|
42
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { RemittanceConfirmRequest } from "./RemittanceConfirmRequest";
|
|
2
|
+
|
|
1
3
|
export interface RemittanceBeneficiaryDisplay {
|
|
2
4
|
name: string;
|
|
3
5
|
bank?: string;
|
|
@@ -16,4 +18,19 @@ export class RemittanceSendPreviewResponse {
|
|
|
16
18
|
beneficiaryDisplay!: RemittanceBeneficiaryDisplay;
|
|
17
19
|
/** Epoch ms. Cache 10 min en RemittanceCache_GT (D-F5.4). */
|
|
18
20
|
expiresAt!: number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* serviceId del corredor resuelto por el connector: `<countryISO>#<payerCode>#<receptionMethodName>`
|
|
24
|
+
* (ej. `GT#GCA10#Cash Pickup`). Insumo para que benefits codifique el `leafId`.
|
|
25
|
+
* Lo llena el connector; no es para consumo directo del front.
|
|
26
|
+
*/
|
|
27
|
+
serviceId?: string;
|
|
28
|
+
/** productId del corredor (monto libre, ej. `GT#GCA10#VAR`). Lo llena el connector. */
|
|
29
|
+
productId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sobre pre-armado por benefits que el front reenvía al procesador para confirmar (F6).
|
|
32
|
+
* Lo completa benefits (encode del `leafId` + taxonomía del marketplace); el connector
|
|
33
|
+
* lo deja vacío. Ver {@link RemittanceConfirmRequest}.
|
|
34
|
+
*/
|
|
35
|
+
confirmRequest?: RemittanceConfirmRequest;
|
|
19
36
|
}
|
|
@@ -10,6 +10,7 @@ export * from "./RemittanceQuoteRequest";
|
|
|
10
10
|
export * from "./RemittanceQuoteResponse";
|
|
11
11
|
export * from "./RemittanceSendPreviewRequest";
|
|
12
12
|
export * from "./RemittanceSendPreviewResponse";
|
|
13
|
+
export * from "./RemittanceConfirmRequest";
|
|
13
14
|
export * from "./RemittancePayRequest";
|
|
14
15
|
export * from "./RemittancePayResponse";
|
|
15
16
|
export * from "./RemittanceTransaction";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InputSchemaOverrideRequest } from "./InputSchemaOverrideRequest";
|
|
2
|
-
/**
|
|
3
|
-
* Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
|
|
4
|
-
* - undefined → no se toca
|
|
5
|
-
* - string/number/boolean seteado → pisa el valor previo del override
|
|
6
|
-
* - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
|
|
7
|
-
*
|
|
8
|
-
* Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
|
|
9
|
-
*/
|
|
10
|
-
export declare class BackofficeLeafOverrideUpsertRequest {
|
|
11
|
-
serviceName?: string;
|
|
12
|
-
logo?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
helpText?: string;
|
|
15
|
-
serviceOrder?: number;
|
|
16
|
-
subcategoryOrder?: number;
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
category?: string;
|
|
19
|
-
subcategory?: string;
|
|
20
|
-
requiresReferenceVerification?: boolean;
|
|
21
|
-
inputSchema?: InputSchemaOverrideRequest;
|
|
22
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BackofficeLeafOverrideUpsertRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const InputSchemaOverrideRequest_1 = require("./InputSchemaOverrideRequest");
|
|
16
|
-
/**
|
|
17
|
-
* Body de PUT /backoffice/leaves/{leafId}. Upsert parcial:
|
|
18
|
-
* - undefined → no se toca
|
|
19
|
-
* - string/number/boolean seteado → pisa el valor previo del override
|
|
20
|
-
* - null NO se acepta (para borrar un campo, usar DELETE /fields/{fieldName})
|
|
21
|
-
*
|
|
22
|
-
* Si todos los campos llegan undefined → 400 INVALID_PATCH_PAYLOAD.
|
|
23
|
-
*/
|
|
24
|
-
class BackofficeLeafOverrideUpsertRequest {
|
|
25
|
-
}
|
|
26
|
-
exports.BackofficeLeafOverrideUpsertRequest = BackofficeLeafOverrideUpsertRequest;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_validator_1.MaxLength)(120),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "serviceName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
|
|
36
|
-
(0, class_validator_1.MaxLength)(500),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "logo", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
(0, class_validator_1.MaxLength)(2000),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "description", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
(0, class_validator_1.IsString)(),
|
|
48
|
-
(0, class_validator_1.MaxLength)(1000),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "helpText", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
(0, class_validator_1.IsInt)(),
|
|
54
|
-
(0, class_validator_1.Min)(0),
|
|
55
|
-
__metadata("design:type", Number)
|
|
56
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "serviceOrder", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsInt)(),
|
|
60
|
-
(0, class_validator_1.Min)(0),
|
|
61
|
-
__metadata("design:type", Number)
|
|
62
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "subcategoryOrder", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_validator_1.IsBoolean)(),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "enabled", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
(0, class_validator_1.IsString)(),
|
|
71
|
-
(0, class_validator_1.MaxLength)(60),
|
|
72
|
-
(0, class_validator_1.Matches)(/^[A-Z][A-Z0-9_ ]*$/, { message: "category must be uppercase with underscores or spaces" }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "category", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.IsString)(),
|
|
78
|
-
(0, class_validator_1.MaxLength)(60),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "subcategory", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, class_validator_1.IsOptional)(),
|
|
83
|
-
(0, class_validator_1.IsBoolean)(),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "requiresReferenceVerification", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_validator_1.IsOptional)(),
|
|
88
|
-
(0, class_validator_1.ValidateNested)(),
|
|
89
|
-
(0, class_transformer_1.Type)(() => InputSchemaOverrideRequest_1.InputSchemaOverrideRequest),
|
|
90
|
-
__metadata("design:type", InputSchemaOverrideRequest_1.InputSchemaOverrideRequest)
|
|
91
|
-
], BackofficeLeafOverrideUpsertRequest.prototype, "inputSchema", void 0);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InputFieldTypeEnum } from "../enums/InputFieldTypeEnum";
|
|
2
|
-
import { InputValidation } from "./InputValidation";
|
|
3
|
-
import { SelectOption } from "./SelectOption";
|
|
4
|
-
/**
|
|
5
|
-
* Override parcial de un field individual del `inputSchema` por `key`.
|
|
6
|
-
* El admin no puede agregar ni quitar fields — solo editar los existentes.
|
|
7
|
-
*/
|
|
8
|
-
export declare class FieldOverrideRequest {
|
|
9
|
-
key: string;
|
|
10
|
-
type?: InputFieldTypeEnum;
|
|
11
|
-
label?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
helpImage?: string;
|
|
15
|
-
showHelp?: boolean;
|
|
16
|
-
options?: SelectOption[];
|
|
17
|
-
dependsOn?: string;
|
|
18
|
-
validation?: InputValidation;
|
|
19
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FieldOverrideRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const InputFieldTypeEnum_1 = require("../enums/InputFieldTypeEnum");
|
|
16
|
-
const InputValidation_1 = require("./InputValidation");
|
|
17
|
-
const SelectOption_1 = require("./SelectOption");
|
|
18
|
-
/**
|
|
19
|
-
* Override parcial de un field individual del `inputSchema` por `key`.
|
|
20
|
-
* El admin no puede agregar ni quitar fields — solo editar los existentes.
|
|
21
|
-
*/
|
|
22
|
-
class FieldOverrideRequest {
|
|
23
|
-
}
|
|
24
|
-
exports.FieldOverrideRequest = FieldOverrideRequest;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], FieldOverrideRequest.prototype, "key", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsEnum)(InputFieldTypeEnum_1.InputFieldTypeEnum),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], FieldOverrideRequest.prototype, "type", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_validator_1.IsString)(),
|
|
38
|
-
(0, class_validator_1.MaxLength)(120),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], FieldOverrideRequest.prototype, "label", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.MaxLength)(120),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], FieldOverrideRequest.prototype, "placeholder", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsOptional)(),
|
|
49
|
-
(0, class_validator_1.IsBoolean)(),
|
|
50
|
-
__metadata("design:type", Boolean)
|
|
51
|
-
], FieldOverrideRequest.prototype, "required", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
(0, class_validator_1.IsUrl)({ protocols: ["https"], require_protocol: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], FieldOverrideRequest.prototype, "helpImage", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsOptional)(),
|
|
59
|
-
(0, class_validator_1.IsBoolean)(),
|
|
60
|
-
__metadata("design:type", Boolean)
|
|
61
|
-
], FieldOverrideRequest.prototype, "showHelp", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
(0, class_validator_1.IsArray)(),
|
|
65
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
66
|
-
(0, class_transformer_1.Type)(() => SelectOption_1.SelectOption),
|
|
67
|
-
__metadata("design:type", Array)
|
|
68
|
-
], FieldOverrideRequest.prototype, "options", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
(0, class_validator_1.IsString)(),
|
|
72
|
-
(0, class_validator_1.MaxLength)(60),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], FieldOverrideRequest.prototype, "dependsOn", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.ValidateNested)(),
|
|
78
|
-
(0, class_transformer_1.Type)(() => InputValidation_1.InputValidation),
|
|
79
|
-
__metadata("design:type", InputValidation_1.InputValidation)
|
|
80
|
-
], FieldOverrideRequest.prototype, "validation", void 0);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FieldOverrideRequest } from "./FieldOverrideRequest";
|
|
2
|
-
/**
|
|
3
|
-
* Override del inputSchema completo. El array `fieldOverrides[]` lista overrides
|
|
4
|
-
* parciales por `key`. La validación cruzada de que cada `key` exista en el
|
|
5
|
-
* inputSchema del conector la hace el manager (no se puede expresar con class-validator).
|
|
6
|
-
*/
|
|
7
|
-
export declare class InputSchemaOverrideRequest {
|
|
8
|
-
fieldOverrides: FieldOverrideRequest[];
|
|
9
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InputSchemaOverrideRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const FieldOverrideRequest_1 = require("./FieldOverrideRequest");
|
|
16
|
-
/**
|
|
17
|
-
* Override del inputSchema completo. El array `fieldOverrides[]` lista overrides
|
|
18
|
-
* parciales por `key`. La validación cruzada de que cada `key` exista en el
|
|
19
|
-
* inputSchema del conector la hace el manager (no se puede expresar con class-validator).
|
|
20
|
-
*/
|
|
21
|
-
class InputSchemaOverrideRequest {
|
|
22
|
-
}
|
|
23
|
-
exports.InputSchemaOverrideRequest = InputSchemaOverrideRequest;
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsArray)(),
|
|
26
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
27
|
-
(0, class_transformer_1.Type)(() => FieldOverrideRequest_1.FieldOverrideRequest),
|
|
28
|
-
__metadata("design:type", Array)
|
|
29
|
-
], InputSchemaOverrideRequest.prototype, "fieldOverrides", void 0);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Estado de un leaf en el listado del backoffice de overrides.
|
|
3
|
-
*
|
|
4
|
-
* - ACTIVE: el override (si existe) tiene un base correspondiente en el catálogo del conector.
|
|
5
|
-
* - ORPHANED: existe override pero el conector ya no devuelve este leafId — el provider lo retiró.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum LeafOverrideStatusEnum {
|
|
8
|
-
ACTIVE = "ACTIVE",
|
|
9
|
-
ORPHANED = "ORPHANED"
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LeafOverrideStatusEnum = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Estado de un leaf en el listado del backoffice de overrides.
|
|
6
|
-
*
|
|
7
|
-
* - ACTIVE: el override (si existe) tiene un base correspondiente en el catálogo del conector.
|
|
8
|
-
* - ORPHANED: existe override pero el conector ya no devuelve este leafId — el provider lo retiró.
|
|
9
|
-
*/
|
|
10
|
-
var LeafOverrideStatusEnum;
|
|
11
|
-
(function (LeafOverrideStatusEnum) {
|
|
12
|
-
LeafOverrideStatusEnum["ACTIVE"] = "ACTIVE";
|
|
13
|
-
LeafOverrideStatusEnum["ORPHANED"] = "ORPHANED";
|
|
14
|
-
})(LeafOverrideStatusEnum || (exports.LeafOverrideStatusEnum = LeafOverrideStatusEnum = {}));
|