@fiado/type-kit 3.85.0 → 3.87.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/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +22 -0
- package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +91 -0
- package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +19 -0
- package/bin/benefitCenter/dtos/FieldOverrideRequest.js +80 -0
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +9 -0
- package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +29 -0
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +10 -0
- package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +14 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +7 -0
- package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +36 -0
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +17 -0
- package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +39 -0
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +13 -0
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +71 -0
- package/bin/comission-business/dtos/GenerateReportRequest.d.ts +10 -0
- package/bin/comission-business/dtos/GenerateReportRequest.js +2 -0
- package/bin/comission-business/dtos/GenerateReportResponse.d.ts +6 -0
- package/bin/comission-business/dtos/GenerateReportResponse.js +2 -0
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +5 -0
- package/bin/comission-business/enums/PaymentStatusEnum.js +9 -0
- package/bin/credit/dtos/CreditBannerStateResponse.d.ts +10 -0
- package/bin/credit/dtos/CreditBannerStateResponse.js +6 -0
- package/bin/credit/dtos/CreditDetailResponse.d.ts +23 -0
- package/bin/credit/dtos/CreditDetailResponse.js +6 -0
- package/bin/credit/dtos/CreditEligibilityResponse.d.ts +9 -0
- package/bin/credit/dtos/CreditEligibilityResponse.js +6 -0
- package/bin/credit/dtos/CreditMovementResponse.d.ts +20 -0
- package/bin/credit/dtos/CreditMovementResponse.js +9 -0
- package/bin/credit/dtos/CreditRequestCreate.d.ts +4 -0
- package/bin/credit/dtos/CreditRequestCreate.js +26 -0
- package/bin/credit/dtos/CreditRequestResponse.d.ts +7 -0
- package/bin/credit/dtos/CreditRequestResponse.js +6 -0
- package/bin/credit/dtos/CreditScheduleResponse.d.ts +18 -0
- package/bin/credit/dtos/CreditScheduleResponse.js +9 -0
- package/bin/credit/dtos/CreditStatementResponse.d.ts +11 -0
- package/bin/credit/dtos/CreditStatementResponse.js +9 -0
- package/bin/credit/dtos/EarlyPaymentRequest.d.ts +7 -0
- package/bin/credit/dtos/EarlyPaymentRequest.js +37 -0
- package/bin/credit/dtos/EarlyPaymentResponse.d.ts +11 -0
- package/bin/credit/dtos/EarlyPaymentResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/CreditBalanceRequest.js +21 -0
- package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +11 -0
- package/bin/credit/dtos/internal/CreditCollectionRequest.js +59 -0
- package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +12 -0
- package/bin/credit/dtos/internal/CreditCollectionResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +7 -0
- package/bin/credit/dtos/internal/CreditDisbursementRequest.js +43 -0
- package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditDisbursementResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/CreditProfileRequest.js +23 -0
- package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +5 -0
- package/bin/credit/dtos/internal/CreditReversalRequest.js +31 -0
- package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +7 -0
- package/bin/credit/dtos/internal/CreditReversalResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +46 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +6 -0
- package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/DocumentSignRequest.js +21 -0
- package/bin/credit/dtos/internal/LienApplyRequest.d.ts +7 -0
- package/bin/credit/dtos/internal/LienApplyRequest.js +45 -0
- package/bin/credit/enums/CollectionFrequencyEnum.d.ts +5 -0
- package/bin/credit/enums/CollectionFrequencyEnum.js +9 -0
- package/bin/credit/enums/CreditOperationEnum.d.ts +11 -0
- package/bin/credit/enums/CreditOperationEnum.js +15 -0
- package/bin/credit/enums/CreditStatusEnum.d.ts +12 -0
- package/bin/credit/enums/CreditStatusEnum.js +16 -0
- package/bin/credit/enums/DelinquencyLevelEnum.d.ts +9 -0
- package/bin/credit/enums/DelinquencyLevelEnum.js +13 -0
- package/bin/credit/enums/DocumentTypeEnum.d.ts +8 -0
- package/bin/credit/enums/DocumentTypeEnum.js +12 -0
- package/bin/credit/enums/OfferStatusEnum.d.ts +8 -0
- package/bin/credit/enums/OfferStatusEnum.js +12 -0
- package/bin/credit/enums/PaymentTypeEnum.d.ts +9 -0
- package/bin/credit/enums/PaymentTypeEnum.js +13 -0
- package/bin/credit/enums/ReconciliationStatusEnum.d.ts +6 -0
- package/bin/credit/enums/ReconciliationStatusEnum.js +10 -0
- package/bin/credit/enums/TransferStatusEnum.d.ts +8 -0
- package/bin/credit/enums/TransferStatusEnum.js +12 -0
- package/bin/platformRbac/dtos/AuthContext.d.ts +3 -3
- package/bin/platformRbac/enums/Permission.d.ts +1 -0
- package/bin/platformRbac/enums/Permission.js +4 -0
- package/bin/platformRbac/tenantTypes.d.ts +4 -3
- package/bin/platformRbac/tenantTypes.js +4 -3
- package/bin/transaction/dtos/CreateDisputePrivateRequest.d.ts +19 -0
- package/bin/transaction/dtos/CreateDisputePrivateRequest.js +11 -0
- package/bin/transaction/dtos/ReopenDisputeRequest.d.ts +8 -0
- package/bin/transaction/dtos/ReopenDisputeRequest.js +11 -0
- package/bin/transaction/index.d.ts +2 -0
- package/bin/transaction/index.js +2 -0
- package/package.json +1 -1
- package/src/platformRbac/dtos/AuthContext.ts +3 -3
- package/src/platformRbac/enums/Permission.ts +4 -0
- package/src/platformRbac/tenantTypes.ts +4 -3
- package/src/transaction/dtos/CreateDisputePrivateRequest.ts +19 -0
- package/src/transaction/dtos/ReopenDisputeRequest.ts +8 -0
- package/src/transaction/index.ts +2 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditOperationEnum = void 0;
|
|
4
|
+
var CreditOperationEnum;
|
|
5
|
+
(function (CreditOperationEnum) {
|
|
6
|
+
CreditOperationEnum["DISBURSEMENT"] = "DISBURSEMENT";
|
|
7
|
+
CreditOperationEnum["COLLECTION"] = "COLLECTION";
|
|
8
|
+
CreditOperationEnum["COLLECTION_PARTIAL"] = "COLLECTION_PARTIAL";
|
|
9
|
+
CreditOperationEnum["COLLECTION_LIEN"] = "COLLECTION_LIEN";
|
|
10
|
+
CreditOperationEnum["EARLY_PAYMENT"] = "EARLY_PAYMENT";
|
|
11
|
+
CreditOperationEnum["TRANSFER_LOANCO"] = "TRANSFER_LOANCO";
|
|
12
|
+
CreditOperationEnum["REVERSAL"] = "REVERSAL";
|
|
13
|
+
CreditOperationEnum["INTEREST_ACCRUAL"] = "INTEREST_ACCRUAL";
|
|
14
|
+
CreditOperationEnum["FEE_CHARGE"] = "FEE_CHARGE";
|
|
15
|
+
})(CreditOperationEnum || (exports.CreditOperationEnum = CreditOperationEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum CreditStatusEnum {
|
|
2
|
+
PENDING_APPROVAL = "PENDING_APPROVAL",
|
|
3
|
+
APPROVED = "APPROVED",
|
|
4
|
+
ACTIVE = "ACTIVE",
|
|
5
|
+
CURRENT = "CURRENT",
|
|
6
|
+
DELINQUENT = "DELINQUENT",
|
|
7
|
+
DEFAULTED = "DEFAULTED",
|
|
8
|
+
PAID_OFF = "PAID_OFF",
|
|
9
|
+
CANCELLED = "CANCELLED",
|
|
10
|
+
RETURNED_TO_LOANCO = "RETURNED_TO_LOANCO",
|
|
11
|
+
WRITTEN_OFF = "WRITTEN_OFF"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditStatusEnum = void 0;
|
|
4
|
+
var CreditStatusEnum;
|
|
5
|
+
(function (CreditStatusEnum) {
|
|
6
|
+
CreditStatusEnum["PENDING_APPROVAL"] = "PENDING_APPROVAL";
|
|
7
|
+
CreditStatusEnum["APPROVED"] = "APPROVED";
|
|
8
|
+
CreditStatusEnum["ACTIVE"] = "ACTIVE";
|
|
9
|
+
CreditStatusEnum["CURRENT"] = "CURRENT";
|
|
10
|
+
CreditStatusEnum["DELINQUENT"] = "DELINQUENT";
|
|
11
|
+
CreditStatusEnum["DEFAULTED"] = "DEFAULTED";
|
|
12
|
+
CreditStatusEnum["PAID_OFF"] = "PAID_OFF";
|
|
13
|
+
CreditStatusEnum["CANCELLED"] = "CANCELLED";
|
|
14
|
+
CreditStatusEnum["RETURNED_TO_LOANCO"] = "RETURNED_TO_LOANCO";
|
|
15
|
+
CreditStatusEnum["WRITTEN_OFF"] = "WRITTEN_OFF";
|
|
16
|
+
})(CreditStatusEnum || (exports.CreditStatusEnum = CreditStatusEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DelinquencyLevelEnum = void 0;
|
|
4
|
+
var DelinquencyLevelEnum;
|
|
5
|
+
(function (DelinquencyLevelEnum) {
|
|
6
|
+
DelinquencyLevelEnum["CURRENT"] = "CURRENT";
|
|
7
|
+
DelinquencyLevelEnum["EARLY_1_7"] = "EARLY_1_7";
|
|
8
|
+
DelinquencyLevelEnum["EARLY_8_14"] = "EARLY_8_14";
|
|
9
|
+
DelinquencyLevelEnum["LATE_15_30"] = "LATE_15_30";
|
|
10
|
+
DelinquencyLevelEnum["LATE_31_60"] = "LATE_31_60";
|
|
11
|
+
DelinquencyLevelEnum["SEVERE_61_90"] = "SEVERE_61_90";
|
|
12
|
+
DelinquencyLevelEnum["DEFAULT_90_PLUS"] = "DEFAULT_90_PLUS";
|
|
13
|
+
})(DelinquencyLevelEnum || (exports.DelinquencyLevelEnum = DelinquencyLevelEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum DocumentTypeEnum {
|
|
2
|
+
CREDIT_CONTRACT = "CREDIT_CONTRACT",
|
|
3
|
+
CREDIT_STATEMENT = "CREDIT_STATEMENT",
|
|
4
|
+
CREDIT_AMORTIZATION = "CREDIT_AMORTIZATION",
|
|
5
|
+
CREDIT_COVER_SHEET = "CREDIT_COVER_SHEET",
|
|
6
|
+
ONBOARDING_CONTRACT = "ONBOARDING_CONTRACT",
|
|
7
|
+
ONBOARDING_IFPE = "ONBOARDING_IFPE"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentTypeEnum = void 0;
|
|
4
|
+
var DocumentTypeEnum;
|
|
5
|
+
(function (DocumentTypeEnum) {
|
|
6
|
+
DocumentTypeEnum["CREDIT_CONTRACT"] = "CREDIT_CONTRACT";
|
|
7
|
+
DocumentTypeEnum["CREDIT_STATEMENT"] = "CREDIT_STATEMENT";
|
|
8
|
+
DocumentTypeEnum["CREDIT_AMORTIZATION"] = "CREDIT_AMORTIZATION";
|
|
9
|
+
DocumentTypeEnum["CREDIT_COVER_SHEET"] = "CREDIT_COVER_SHEET";
|
|
10
|
+
DocumentTypeEnum["ONBOARDING_CONTRACT"] = "ONBOARDING_CONTRACT";
|
|
11
|
+
DocumentTypeEnum["ONBOARDING_IFPE"] = "ONBOARDING_IFPE";
|
|
12
|
+
})(DocumentTypeEnum || (exports.DocumentTypeEnum = DocumentTypeEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferStatusEnum = void 0;
|
|
4
|
+
var OfferStatusEnum;
|
|
5
|
+
(function (OfferStatusEnum) {
|
|
6
|
+
OfferStatusEnum["NOT_ELIGIBLE"] = "NOT_ELIGIBLE";
|
|
7
|
+
OfferStatusEnum["PRE_QUALIFIED"] = "PRE_QUALIFIED";
|
|
8
|
+
OfferStatusEnum["OFFER_AVAILABLE"] = "OFFER_AVAILABLE";
|
|
9
|
+
OfferStatusEnum["OFFER_CONFIGURED"] = "OFFER_CONFIGURED";
|
|
10
|
+
OfferStatusEnum["OFFER_ACCEPTED"] = "OFFER_ACCEPTED";
|
|
11
|
+
OfferStatusEnum["OFFER_EXPIRED"] = "OFFER_EXPIRED";
|
|
12
|
+
})(OfferStatusEnum || (exports.OfferStatusEnum = OfferStatusEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentTypeEnum = void 0;
|
|
4
|
+
var PaymentTypeEnum;
|
|
5
|
+
(function (PaymentTypeEnum) {
|
|
6
|
+
PaymentTypeEnum["REGULAR"] = "REGULAR";
|
|
7
|
+
PaymentTypeEnum["PARTIAL"] = "PARTIAL";
|
|
8
|
+
PaymentTypeEnum["EARLY_ANTICIPATED"] = "EARLY_ANTICIPATED";
|
|
9
|
+
PaymentTypeEnum["EARLY_ADVANCED"] = "EARLY_ADVANCED";
|
|
10
|
+
PaymentTypeEnum["EARLY_SETTLEMENT"] = "EARLY_SETTLEMENT";
|
|
11
|
+
PaymentTypeEnum["LIEN"] = "LIEN";
|
|
12
|
+
PaymentTypeEnum["REVERSAL"] = "REVERSAL";
|
|
13
|
+
})(PaymentTypeEnum || (exports.PaymentTypeEnum = PaymentTypeEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReconciliationStatusEnum = void 0;
|
|
4
|
+
var ReconciliationStatusEnum;
|
|
5
|
+
(function (ReconciliationStatusEnum) {
|
|
6
|
+
ReconciliationStatusEnum["PENDING"] = "PENDING";
|
|
7
|
+
ReconciliationStatusEnum["MATCHED"] = "MATCHED";
|
|
8
|
+
ReconciliationStatusEnum["DISCREPANCY"] = "DISCREPANCY";
|
|
9
|
+
ReconciliationStatusEnum["RESOLVED"] = "RESOLVED";
|
|
10
|
+
})(ReconciliationStatusEnum || (exports.ReconciliationStatusEnum = ReconciliationStatusEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferStatusEnum = void 0;
|
|
4
|
+
var TransferStatusEnum;
|
|
5
|
+
(function (TransferStatusEnum) {
|
|
6
|
+
TransferStatusEnum["PENDING"] = "PENDING";
|
|
7
|
+
TransferStatusEnum["APPROVED"] = "APPROVED";
|
|
8
|
+
TransferStatusEnum["IN_PROGRESS"] = "IN_PROGRESS";
|
|
9
|
+
TransferStatusEnum["COMPLETED"] = "COMPLETED";
|
|
10
|
+
TransferStatusEnum["FAILED"] = "FAILED";
|
|
11
|
+
TransferStatusEnum["REJECTED"] = "REJECTED";
|
|
12
|
+
})(TransferStatusEnum || (exports.TransferStatusEnum = TransferStatusEnum = {}));
|
|
@@ -18,10 +18,10 @@ export interface AuthContext {
|
|
|
18
18
|
permissions: Permission[];
|
|
19
19
|
resolvedAt: string;
|
|
20
20
|
issuer?: string;
|
|
21
|
-
/**
|
|
21
|
+
/** @deprecated RBAC Token Flaco (DEC-RBAC-008): el bitset muere; el adapter resuelve permisos frescos desde DDB. Se conserva el campo para compat de tokens viejos en transición. */
|
|
22
22
|
permBits?: string;
|
|
23
|
-
/**
|
|
23
|
+
/** @deprecated DEC-RBAC-008: versión del catálogo del bitset. No se usa en el modelo token-flaco. */
|
|
24
24
|
permVer?: number;
|
|
25
|
-
/**
|
|
25
|
+
/** @deprecated DEC-RBAC-008: epoch de permisos. El authorizer ya no lo chequea. */
|
|
26
26
|
permsEpoch?: number;
|
|
27
27
|
}
|
|
@@ -130,6 +130,7 @@ export declare enum Permission {
|
|
|
130
130
|
AGENTS_PERSON_SEARCH = "agents.person.search",
|
|
131
131
|
AGENTS_PERSON_VIEW = "agents.person.view",
|
|
132
132
|
AGENTS_PERSON_UPDATE = "agents.person.update",
|
|
133
|
+
AGENTS_PERSON_CREATE = "agents.person.create",
|
|
133
134
|
AGENTS_DOCUMENT_VIEW = "agents.document.view",
|
|
134
135
|
AGENTS_DOCUMENT_UPLOAD = "agents.document.upload",
|
|
135
136
|
AGENTS_ADDRESS_VIEW = "agents.address.view",
|
|
@@ -171,6 +171,7 @@ var Permission;
|
|
|
171
171
|
Permission["AGENTS_PERSON_SEARCH"] = "agents.person.search";
|
|
172
172
|
Permission["AGENTS_PERSON_VIEW"] = "agents.person.view";
|
|
173
173
|
Permission["AGENTS_PERSON_UPDATE"] = "agents.person.update";
|
|
174
|
+
Permission["AGENTS_PERSON_CREATE"] = "agents.person.create";
|
|
174
175
|
Permission["AGENTS_DOCUMENT_VIEW"] = "agents.document.view";
|
|
175
176
|
Permission["AGENTS_DOCUMENT_UPLOAD"] = "agents.document.upload";
|
|
176
177
|
Permission["AGENTS_ADDRESS_VIEW"] = "agents.address.view";
|
|
@@ -317,6 +318,9 @@ exports.PERMISSION_BIT_ORDER = [
|
|
|
317
318
|
Permission.AGENTS_CATALOG_VIEW,
|
|
318
319
|
Permission.AGENTS_GROUP_MANAGE,
|
|
319
320
|
Permission.AGENTS_GROUP_USER_MANAGE,
|
|
321
|
+
// Append-only: nuevo permiso agregado 2026-06-18 (DEC-A2-02). Va al FINAL para no correr los bits
|
|
322
|
+
// existentes (PERMS_VERSION cambia, pero los índices previos se conservan).
|
|
323
|
+
Permission.AGENTS_PERSON_CREATE,
|
|
320
324
|
];
|
|
321
325
|
function djb2(input) {
|
|
322
326
|
let h = 5381;
|
|
@@ -18,9 +18,10 @@ export declare const TENANT_TYPES: Record<TenantType, TenantTypeDef>;
|
|
|
18
18
|
export declare function levelsOf(type: TenantType): PermissionScope[];
|
|
19
19
|
export declare function tableSuffixForLevel(type: TenantType, level: PermissionScope): string | undefined;
|
|
20
20
|
/**
|
|
21
|
-
* Orden global de
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* Orden global de scopes para ORDENAR (ej. UI): PLATFORM, TENANT + niveles de cada tipo.
|
|
22
|
+
* ⚠️ NO usar para COBERTURA de autorización: es un orden total que cruzaría ramas
|
|
23
|
+
* (sugeriría falsamente que RETAILER cubre GROUP). La cobertura se decide con una relación
|
|
24
|
+
* explícita por niveles — ver `canAccess`/`scopeCovers` en @fiado/gateway-adapter (DEC-RBAC-010).
|
|
24
25
|
*/
|
|
25
26
|
export declare function scopeRankOrder(): PermissionScope[];
|
|
26
27
|
export {};
|
|
@@ -37,9 +37,10 @@ function tableSuffixForLevel(type, level) {
|
|
|
37
37
|
return exports.TENANT_TYPES[type].tableSuffix[level];
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* Orden global de
|
|
41
|
-
*
|
|
42
|
-
*
|
|
40
|
+
* Orden global de scopes para ORDENAR (ej. UI): PLATFORM, TENANT + niveles de cada tipo.
|
|
41
|
+
* ⚠️ NO usar para COBERTURA de autorización: es un orden total que cruzaría ramas
|
|
42
|
+
* (sugeriría falsamente que RETAILER cubre GROUP). La cobertura se decide con una relación
|
|
43
|
+
* explícita por niveles — ver `canAccess`/`scopeCovers` en @fiado/gateway-adapter (DEC-RBAC-010).
|
|
43
44
|
*/
|
|
44
45
|
function scopeRankOrder() {
|
|
45
46
|
const order = [PermissionScope_1.PermissionScope.PLATFORM, PermissionScope_1.PermissionScope.TENANT];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request de alta multi-canal de reclamación por el OC (BO-R27 Fase A, §3.5).
|
|
3
|
+
* POST disputes — privado (VPC/VPN). Para reclamaciones recibidas por canal no-app
|
|
4
|
+
* (teléfono 202, correo 204, otros 205) que hoy no generan folio y se pierden del R27.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CreateDisputePrivateRequest {
|
|
7
|
+
directoryId: string;
|
|
8
|
+
channel: number;
|
|
9
|
+
originatorRole: string;
|
|
10
|
+
originatorUserId: string;
|
|
11
|
+
disputeReason: number;
|
|
12
|
+
disputeObject: number;
|
|
13
|
+
disputeObjectChannel: number;
|
|
14
|
+
amount: number;
|
|
15
|
+
description: string;
|
|
16
|
+
dateOfDisputedTx: string;
|
|
17
|
+
disputedTxNumber?: string;
|
|
18
|
+
clientRequestId: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateDisputePrivateRequest = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Request de alta multi-canal de reclamación por el OC (BO-R27 Fase A, §3.5).
|
|
6
|
+
* POST disputes — privado (VPC/VPN). Para reclamaciones recibidas por canal no-app
|
|
7
|
+
* (teléfono 202, correo 204, otros 205) que hoy no generan folio y se pierden del R27.
|
|
8
|
+
*/
|
|
9
|
+
class CreateDisputePrivateRequest {
|
|
10
|
+
}
|
|
11
|
+
exports.CreateDisputePrivateRequest = CreateDisputePrivateRequest;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request de reapertura de reclamación (BO-R27 Fase A, §3.1).
|
|
3
|
+
* POST disputes/{folioId}/reopen — privado (VPC/VPN). Transición 102 -> 103.
|
|
4
|
+
* La dispara la app móvil del cliente cuando discrepa con un dictamen improcedente.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ReopenDisputeRequest {
|
|
7
|
+
reopenReason: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReopenDisputeRequest = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Request de reapertura de reclamación (BO-R27 Fase A, §3.1).
|
|
6
|
+
* POST disputes/{folioId}/reopen — privado (VPC/VPN). Transición 102 -> 103.
|
|
7
|
+
* La dispara la app móvil del cliente cuando discrepa con un dictamen improcedente.
|
|
8
|
+
*/
|
|
9
|
+
class ReopenDisputeRequest {
|
|
10
|
+
}
|
|
11
|
+
exports.ReopenDisputeRequest = ReopenDisputeRequest;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './dtos/CounterQueryResponse';
|
|
2
2
|
export * from './dtos/UpdateR27StatusRequest';
|
|
3
3
|
export * from './dtos/UpdateR27StatusResponse';
|
|
4
|
+
export * from './dtos/ReopenDisputeRequest';
|
|
5
|
+
export * from './dtos/CreateDisputePrivateRequest';
|
|
4
6
|
export * from './dtos/TransactionCreateRequest';
|
|
5
7
|
export * from './dtos/TransactionCreateResponse';
|
|
6
8
|
export * from './dtos/TransactionGetDetailResponse';
|
package/bin/transaction/index.js
CHANGED
|
@@ -18,6 +18,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
__exportStar(require("./dtos/CounterQueryResponse"), exports);
|
|
19
19
|
__exportStar(require("./dtos/UpdateR27StatusRequest"), exports);
|
|
20
20
|
__exportStar(require("./dtos/UpdateR27StatusResponse"), exports);
|
|
21
|
+
__exportStar(require("./dtos/ReopenDisputeRequest"), exports);
|
|
22
|
+
__exportStar(require("./dtos/CreateDisputePrivateRequest"), exports);
|
|
21
23
|
__exportStar(require("./dtos/TransactionCreateRequest"), exports);
|
|
22
24
|
__exportStar(require("./dtos/TransactionCreateResponse"), exports);
|
|
23
25
|
__exportStar(require("./dtos/TransactionGetDetailResponse"), exports);
|
package/package.json
CHANGED
|
@@ -19,10 +19,10 @@ export interface AuthContext {
|
|
|
19
19
|
permissions: Permission[];
|
|
20
20
|
resolvedAt: string;
|
|
21
21
|
issuer?: string;
|
|
22
|
-
/**
|
|
22
|
+
/** @deprecated RBAC Token Flaco (DEC-RBAC-008): el bitset muere; el adapter resuelve permisos frescos desde DDB. Se conserva el campo para compat de tokens viejos en transición. */
|
|
23
23
|
permBits?: string;
|
|
24
|
-
/**
|
|
24
|
+
/** @deprecated DEC-RBAC-008: versión del catálogo del bitset. No se usa en el modelo token-flaco. */
|
|
25
25
|
permVer?: number;
|
|
26
|
-
/**
|
|
26
|
+
/** @deprecated DEC-RBAC-008: epoch de permisos. El authorizer ya no lo chequea. */
|
|
27
27
|
permsEpoch?: number;
|
|
28
28
|
}
|
|
@@ -172,6 +172,7 @@ export enum Permission {
|
|
|
172
172
|
AGENTS_PERSON_SEARCH = 'agents.person.search',
|
|
173
173
|
AGENTS_PERSON_VIEW = 'agents.person.view',
|
|
174
174
|
AGENTS_PERSON_UPDATE = 'agents.person.update',
|
|
175
|
+
AGENTS_PERSON_CREATE = 'agents.person.create',
|
|
175
176
|
AGENTS_DOCUMENT_VIEW = 'agents.document.view',
|
|
176
177
|
AGENTS_DOCUMENT_UPLOAD = 'agents.document.upload',
|
|
177
178
|
AGENTS_ADDRESS_VIEW = 'agents.address.view',
|
|
@@ -319,6 +320,9 @@ export const PERMISSION_BIT_ORDER: readonly Permission[] = [
|
|
|
319
320
|
Permission.AGENTS_CATALOG_VIEW,
|
|
320
321
|
Permission.AGENTS_GROUP_MANAGE,
|
|
321
322
|
Permission.AGENTS_GROUP_USER_MANAGE,
|
|
323
|
+
// Append-only: nuevo permiso agregado 2026-06-18 (DEC-A2-02). Va al FINAL para no correr los bits
|
|
324
|
+
// existentes (PERMS_VERSION cambia, pero los índices previos se conservan).
|
|
325
|
+
Permission.AGENTS_PERSON_CREATE,
|
|
322
326
|
] as const;
|
|
323
327
|
|
|
324
328
|
function djb2(input: string): number {
|
|
@@ -43,9 +43,10 @@ export function tableSuffixForLevel(type: TenantType, level: PermissionScope): s
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Orden global de
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* Orden global de scopes para ORDENAR (ej. UI): PLATFORM, TENANT + niveles de cada tipo.
|
|
47
|
+
* ⚠️ NO usar para COBERTURA de autorización: es un orden total que cruzaría ramas
|
|
48
|
+
* (sugeriría falsamente que RETAILER cubre GROUP). La cobertura se decide con una relación
|
|
49
|
+
* explícita por niveles — ver `canAccess`/`scopeCovers` en @fiado/gateway-adapter (DEC-RBAC-010).
|
|
49
50
|
*/
|
|
50
51
|
export function scopeRankOrder(): PermissionScope[] {
|
|
51
52
|
const order: PermissionScope[] = [PermissionScope.PLATFORM, PermissionScope.TENANT];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request de alta multi-canal de reclamación por el OC (BO-R27 Fase A, §3.5).
|
|
3
|
+
* POST disputes — privado (VPC/VPN). Para reclamaciones recibidas por canal no-app
|
|
4
|
+
* (teléfono 202, correo 204, otros 205) que hoy no generan folio y se pierden del R27.
|
|
5
|
+
*/
|
|
6
|
+
export class CreateDisputePrivateRequest {
|
|
7
|
+
directoryId: string; // uuid cliente, requerido
|
|
8
|
+
channel: number; // 202|204|205 (206 sólo si el OC captura lo dictado por la app)
|
|
9
|
+
originatorRole: string; // "OC"
|
|
10
|
+
originatorUserId: string; // email del OC
|
|
11
|
+
disputeReason: number; // catálogo R27
|
|
12
|
+
disputeObject: number; // catálogo R27
|
|
13
|
+
disputeObjectChannel: number; // catálogo R27
|
|
14
|
+
amount: number; // > 0
|
|
15
|
+
description: string; // 20-2000 chars
|
|
16
|
+
dateOfDisputedTx: string; // ISO, no futura
|
|
17
|
+
disputedTxNumber?: string; // opcional
|
|
18
|
+
clientRequestId: string; // uuid-v4 del Dashboard, idempotencia
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request de reapertura de reclamación (BO-R27 Fase A, §3.1).
|
|
3
|
+
* POST disputes/{folioId}/reopen — privado (VPC/VPN). Transición 102 -> 103.
|
|
4
|
+
* La dispara la app móvil del cliente cuando discrepa con un dictamen improcedente.
|
|
5
|
+
*/
|
|
6
|
+
export class ReopenDisputeRequest {
|
|
7
|
+
reopenReason: string; // requerido, max 500 chars
|
|
8
|
+
}
|
package/src/transaction/index.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export * from './dtos/CounterQueryResponse';
|
|
3
3
|
export * from './dtos/UpdateR27StatusRequest';
|
|
4
4
|
export * from './dtos/UpdateR27StatusResponse';
|
|
5
|
+
export * from './dtos/ReopenDisputeRequest';
|
|
6
|
+
export * from './dtos/CreateDisputePrivateRequest';
|
|
5
7
|
export * from './dtos/TransactionCreateRequest';
|
|
6
8
|
export * from './dtos/TransactionCreateResponse';
|
|
7
9
|
export * from './dtos/TransactionGetDetailResponse';
|