@fiado/type-kit 3.83.0 → 3.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_test_/unit/platformRbac/enums/__snapshots__/permissionBits.test.ts.snap +2 -1
- package/bin/platformRbac/enums/Permission.d.ts +2 -1
- package/bin/platformRbac/enums/Permission.js +4 -0
- package/bin/transaction/index.d.ts +1 -0
- package/bin/transaction/index.js +1 -0
- package/package.json +1 -1
- package/src/platformRbac/enums/Permission.ts +4 -0
- package/src/transaction/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/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +0 -7
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +0 -36
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +0 -17
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +0 -39
- 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/GenerateReportRequest.js +0 -2
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
|
-
exports[`PERMISSION_BIT_ORDER PERMS_VERSION es número estable 1`] = `
|
|
3
|
+
exports[`PERMISSION_BIT_ORDER PERMS_VERSION es número estable 1`] = `2301550724`;
|
|
4
4
|
|
|
5
5
|
exports[`PERMISSION_BIT_ORDER append-only: snapshot del ORDEN COMPLETO (rompe ante cualquier reorden/inserción) 1`] = `
|
|
6
6
|
[
|
|
@@ -118,5 +118,6 @@ exports[`PERMISSION_BIT_ORDER append-only: snapshot del ORDEN COMPLETO (rompe an
|
|
|
118
118
|
"agents.export.run",
|
|
119
119
|
"agents.catalog.view",
|
|
120
120
|
"agents.group.manage",
|
|
121
|
+
"agents.group.user.manage",
|
|
121
122
|
]
|
|
122
123
|
`;
|
|
@@ -142,7 +142,8 @@ export declare enum Permission {
|
|
|
142
142
|
AGENTS_NOTIFICATION_SEND = "agents.notification.send",
|
|
143
143
|
AGENTS_EXPORT_RUN = "agents.export.run",
|
|
144
144
|
AGENTS_CATALOG_VIEW = "agents.catalog.view",
|
|
145
|
-
AGENTS_GROUP_MANAGE = "agents.group.manage"
|
|
145
|
+
AGENTS_GROUP_MANAGE = "agents.group.manage",
|
|
146
|
+
AGENTS_GROUP_USER_MANAGE = "agents.group.user.manage"
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* Orden CANÓNICO y APPEND-ONLY de los permisos para el bitset del token.
|
|
@@ -185,6 +185,9 @@ var Permission;
|
|
|
185
185
|
Permission["AGENTS_CATALOG_VIEW"] = "agents.catalog.view";
|
|
186
186
|
// Gestión de grupos del tenant AGENTS (scope TENANT — el operador). Espejo de retail.retailer.manage.
|
|
187
187
|
Permission["AGENTS_GROUP_MANAGE"] = "agents.group.manage";
|
|
188
|
+
// Gestión de usuarios DENTRO de un grupo (scope GROUP — el group_owner/admin sobre su grupo; el
|
|
189
|
+
// operador la cubre por TENANT). Crea usuarios + asigna roles group_* acotado al groupId. DEC-102.
|
|
190
|
+
Permission["AGENTS_GROUP_USER_MANAGE"] = "agents.group.user.manage";
|
|
188
191
|
})(Permission || (exports.Permission = Permission = {}));
|
|
189
192
|
/**
|
|
190
193
|
* Orden CANÓNICO y APPEND-ONLY de los permisos para el bitset del token.
|
|
@@ -313,6 +316,7 @@ exports.PERMISSION_BIT_ORDER = [
|
|
|
313
316
|
Permission.AGENTS_EXPORT_RUN,
|
|
314
317
|
Permission.AGENTS_CATALOG_VIEW,
|
|
315
318
|
Permission.AGENTS_GROUP_MANAGE,
|
|
319
|
+
Permission.AGENTS_GROUP_USER_MANAGE,
|
|
316
320
|
];
|
|
317
321
|
function djb2(input) {
|
|
318
322
|
let h = 5381;
|
package/bin/transaction/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
//dtos
|
|
18
|
+
__exportStar(require("./dtos/CounterQueryResponse"), exports);
|
|
18
19
|
__exportStar(require("./dtos/UpdateR27StatusRequest"), exports);
|
|
19
20
|
__exportStar(require("./dtos/UpdateR27StatusResponse"), exports);
|
|
20
21
|
__exportStar(require("./dtos/TransactionCreateRequest"), exports);
|
package/package.json
CHANGED
|
@@ -186,6 +186,9 @@ export enum Permission {
|
|
|
186
186
|
AGENTS_CATALOG_VIEW = 'agents.catalog.view',
|
|
187
187
|
// Gestión de grupos del tenant AGENTS (scope TENANT — el operador). Espejo de retail.retailer.manage.
|
|
188
188
|
AGENTS_GROUP_MANAGE = 'agents.group.manage',
|
|
189
|
+
// Gestión de usuarios DENTRO de un grupo (scope GROUP — el group_owner/admin sobre su grupo; el
|
|
190
|
+
// operador la cubre por TENANT). Crea usuarios + asigna roles group_* acotado al groupId. DEC-102.
|
|
191
|
+
AGENTS_GROUP_USER_MANAGE = 'agents.group.user.manage',
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
/**
|
|
@@ -315,6 +318,7 @@ export const PERMISSION_BIT_ORDER: readonly Permission[] = [
|
|
|
315
318
|
Permission.AGENTS_EXPORT_RUN,
|
|
316
319
|
Permission.AGENTS_CATALOG_VIEW,
|
|
317
320
|
Permission.AGENTS_GROUP_MANAGE,
|
|
321
|
+
Permission.AGENTS_GROUP_USER_MANAGE,
|
|
318
322
|
] as const;
|
|
319
323
|
|
|
320
324
|
function djb2(input: string): number {
|
package/src/transaction/index.ts
CHANGED
|
@@ -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 = {}));
|
|
@@ -1,36 +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.MfaPoolConfig = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const MfaTypesRequiresOne_1 = require("../validators/MfaTypesRequiresOne");
|
|
16
|
-
// EMAIL_OTP removido (3.41.0): el cognito-backoffice-connector no provisiona
|
|
17
|
-
// EmailMfaConfiguration a nivel pool (requiere infra SES que no está montada
|
|
18
|
-
// y la integración con messages-lambda aún no tiene diseño). Ver TD-020 +
|
|
19
|
-
// DEC-001 en cognito-backoffice-connector/docs/. Si se reintroduce, agregar
|
|
20
|
-
// 'EMAIL_OTP' a este array.
|
|
21
|
-
const ALLOWED_MFA_TYPES = ['SOFTWARE_TOKEN_MFA'];
|
|
22
|
-
class MfaPoolConfig {
|
|
23
|
-
}
|
|
24
|
-
exports.MfaPoolConfig = MfaPoolConfig;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
(0, class_validator_1.IsBoolean)(),
|
|
28
|
-
__metadata("design:type", Boolean)
|
|
29
|
-
], MfaPoolConfig.prototype, "requireMfa", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
(0, class_validator_1.IsArray)(),
|
|
33
|
-
(0, class_validator_1.IsIn)(ALLOWED_MFA_TYPES, { each: true }),
|
|
34
|
-
(0, class_validator_1.Validate)(MfaTypesRequiresOne_1.MfaTypesRequiresOne),
|
|
35
|
-
__metadata("design:type", Array)
|
|
36
|
-
], MfaPoolConfig.prototype, "mfaTypes", void 0);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ValidatorConstraintInterface, ValidationArguments } from 'class-validator';
|
|
2
|
-
/**
|
|
3
|
-
* Cross-field validator: si `requireMfa: true`, entonces `mfaTypes` debe tener
|
|
4
|
-
* al menos 1 elemento. Si `requireMfa: false`, `mfaTypes` puede ser vacío.
|
|
5
|
-
*
|
|
6
|
-
* Razón: cuando el pool nace con MFA habilitado, el connector llama
|
|
7
|
-
* `SetUserPoolMfaConfigCommand` con la lista de tipos del DTO. Si el array
|
|
8
|
-
* llega vacío con `requireMfa: true`, el SDK rechaza con InvalidParameterException
|
|
9
|
-
* y el pool queda en estado inconsistente (MfaConfiguration:'ON' sin tipos).
|
|
10
|
-
* Mejor rechazar en validación del DTO antes de tocar AWS.
|
|
11
|
-
*
|
|
12
|
-
* Ver pivote v1.4.1 TD-017 cerrado + spec doc §1 R3.
|
|
13
|
-
*/
|
|
14
|
-
export declare class MfaTypesRequiresOne implements ValidatorConstraintInterface {
|
|
15
|
-
validate(mfaTypes: unknown, args: ValidationArguments): boolean;
|
|
16
|
-
defaultMessage(): string;
|
|
17
|
-
}
|
|
@@ -1,39 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.MfaTypesRequiresOne = void 0;
|
|
10
|
-
const class_validator_1 = require("class-validator");
|
|
11
|
-
/**
|
|
12
|
-
* Cross-field validator: si `requireMfa: true`, entonces `mfaTypes` debe tener
|
|
13
|
-
* al menos 1 elemento. Si `requireMfa: false`, `mfaTypes` puede ser vacío.
|
|
14
|
-
*
|
|
15
|
-
* Razón: cuando el pool nace con MFA habilitado, el connector llama
|
|
16
|
-
* `SetUserPoolMfaConfigCommand` con la lista de tipos del DTO. Si el array
|
|
17
|
-
* llega vacío con `requireMfa: true`, el SDK rechaza con InvalidParameterException
|
|
18
|
-
* y el pool queda en estado inconsistente (MfaConfiguration:'ON' sin tipos).
|
|
19
|
-
* Mejor rechazar en validación del DTO antes de tocar AWS.
|
|
20
|
-
*
|
|
21
|
-
* Ver pivote v1.4.1 TD-017 cerrado + spec doc §1 R3.
|
|
22
|
-
*/
|
|
23
|
-
let MfaTypesRequiresOne = class MfaTypesRequiresOne {
|
|
24
|
-
validate(mfaTypes, args) {
|
|
25
|
-
const obj = args.object;
|
|
26
|
-
if (obj.requireMfa === true) {
|
|
27
|
-
return Array.isArray(mfaTypes) && mfaTypes.length >= 1;
|
|
28
|
-
}
|
|
29
|
-
// requireMfa: false → cualquier mfaTypes pasa.
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
defaultMessage() {
|
|
33
|
-
return 'mfaTypes requiere al menos un tipo cuando requireMfa=true';
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.MfaTypesRequiresOne = MfaTypesRequiresOne;
|
|
37
|
-
exports.MfaTypesRequiresOne = MfaTypesRequiresOne = __decorate([
|
|
38
|
-
(0, class_validator_1.ValidatorConstraint)({ name: 'MfaTypesRequiresOneWhenMfaRequired', async: false })
|
|
39
|
-
], MfaTypesRequiresOne);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class SignUpBackofficeRequest {
|
|
2
|
-
name: string;
|
|
3
|
-
phoneNumber: string;
|
|
4
|
-
countryOfBirth: string;
|
|
5
|
-
MEX_DebitAccountWish: boolean;
|
|
6
|
-
USA_DebitAccountWish: boolean;
|
|
7
|
-
countryOfDomicile: string;
|
|
8
|
-
myReferralCode?: string;
|
|
9
|
-
referralCode?: string;
|
|
10
|
-
groupId?: string;
|
|
11
|
-
isAgent: boolean;
|
|
12
|
-
agentGroupId?: string;
|
|
13
|
-
}
|
|
@@ -1,71 +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.SignUpBackofficeRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class SignUpBackofficeRequest {
|
|
15
|
-
}
|
|
16
|
-
exports.SignUpBackofficeRequest = SignUpBackofficeRequest;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], SignUpBackofficeRequest.prototype, "name", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsString)(),
|
|
24
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], SignUpBackofficeRequest.prototype, "phoneNumber", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], SignUpBackofficeRequest.prototype, "countryOfBirth", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsBoolean)(),
|
|
34
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
-
__metadata("design:type", Boolean)
|
|
36
|
-
], SignUpBackofficeRequest.prototype, "MEX_DebitAccountWish", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsBoolean)(),
|
|
39
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
-
__metadata("design:type", Boolean)
|
|
41
|
-
], SignUpBackofficeRequest.prototype, "USA_DebitAccountWish", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], SignUpBackofficeRequest.prototype, "countryOfDomicile", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsString)(),
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], SignUpBackofficeRequest.prototype, "myReferralCode", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsString)(),
|
|
54
|
-
(0, class_validator_1.IsOptional)(),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], SignUpBackofficeRequest.prototype, "referralCode", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_validator_1.IsString)(),
|
|
59
|
-
(0, class_validator_1.IsOptional)(),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], SignUpBackofficeRequest.prototype, "groupId", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsBoolean)(),
|
|
64
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
65
|
-
__metadata("design:type", Boolean)
|
|
66
|
-
], SignUpBackofficeRequest.prototype, "isAgent", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, class_validator_1.IsString)(),
|
|
69
|
-
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], SignUpBackofficeRequest.prototype, "agentGroupId", void 0);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CountryId } from "../../country";
|
|
2
|
-
import { ReportConceptEnum } from "../enums/ReportConceptEnum";
|
|
3
|
-
export interface GenerateReportRequest {
|
|
4
|
-
dateFrom: string;
|
|
5
|
-
dateTo: string;
|
|
6
|
-
groupId?: string;
|
|
7
|
-
currency: CountryId;
|
|
8
|
-
amountPerReferral: number;
|
|
9
|
-
concept: ReportConceptEnum;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentStatusEnum = void 0;
|
|
4
|
-
var PaymentStatusEnum;
|
|
5
|
-
(function (PaymentStatusEnum) {
|
|
6
|
-
PaymentStatusEnum["PENDING"] = "PENDING";
|
|
7
|
-
PaymentStatusEnum["PAID"] = "PAID";
|
|
8
|
-
PaymentStatusEnum["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
9
|
-
})(PaymentStatusEnum || (exports.PaymentStatusEnum = PaymentStatusEnum = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OfferStatusEnum } from "../enums/OfferStatusEnum";
|
|
2
|
-
import { CreditStatusEnum } from "../enums/CreditStatusEnum";
|
|
3
|
-
export declare class CreditBannerStateResponse {
|
|
4
|
-
showBanner: boolean;
|
|
5
|
-
bannerType: 'NURTURING' | 'OFFER_AVAILABLE' | 'ACTIVE_CREDIT' | 'NONE';
|
|
6
|
-
offerStatus: OfferStatusEnum | null;
|
|
7
|
-
creditStatus: CreditStatusEnum | null;
|
|
8
|
-
message: string | null;
|
|
9
|
-
maxOfferAmount: number | null;
|
|
10
|
-
}
|