@fiado/type-kit 3.86.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.
Files changed (97) hide show
  1. package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.d.ts +22 -0
  2. package/bin/benefitCenter/dtos/BackofficeLeafOverrideUpsertRequest.js +91 -0
  3. package/bin/benefitCenter/dtos/FieldOverrideRequest.d.ts +19 -0
  4. package/bin/benefitCenter/dtos/FieldOverrideRequest.js +80 -0
  5. package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.d.ts +9 -0
  6. package/bin/benefitCenter/dtos/InputSchemaOverrideRequest.js +29 -0
  7. package/bin/benefitCenter/enums/LeafOverrideStatusEnum.d.ts +10 -0
  8. package/bin/benefitCenter/enums/LeafOverrideStatusEnum.js +14 -0
  9. package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.d.ts +7 -0
  10. package/bin/cognitoBackofficeConnector/dtos/MfaPoolConfig.js +36 -0
  11. package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.d.ts +17 -0
  12. package/bin/cognitoBackofficeConnector/validators/MfaTypesRequiresOne.js +39 -0
  13. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +13 -0
  14. package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +71 -0
  15. package/bin/comission-business/dtos/GenerateReportRequest.d.ts +10 -0
  16. package/bin/comission-business/dtos/GenerateReportRequest.js +2 -0
  17. package/bin/comission-business/dtos/GenerateReportResponse.d.ts +6 -0
  18. package/bin/comission-business/dtos/GenerateReportResponse.js +2 -0
  19. package/bin/comission-business/enums/PaymentStatusEnum.d.ts +5 -0
  20. package/bin/comission-business/enums/PaymentStatusEnum.js +9 -0
  21. package/bin/credit/dtos/CreditBannerStateResponse.d.ts +10 -0
  22. package/bin/credit/dtos/CreditBannerStateResponse.js +6 -0
  23. package/bin/credit/dtos/CreditDetailResponse.d.ts +23 -0
  24. package/bin/credit/dtos/CreditDetailResponse.js +6 -0
  25. package/bin/credit/dtos/CreditEligibilityResponse.d.ts +9 -0
  26. package/bin/credit/dtos/CreditEligibilityResponse.js +6 -0
  27. package/bin/credit/dtos/CreditMovementResponse.d.ts +20 -0
  28. package/bin/credit/dtos/CreditMovementResponse.js +9 -0
  29. package/bin/credit/dtos/CreditRequestCreate.d.ts +4 -0
  30. package/bin/credit/dtos/CreditRequestCreate.js +26 -0
  31. package/bin/credit/dtos/CreditRequestResponse.d.ts +7 -0
  32. package/bin/credit/dtos/CreditRequestResponse.js +6 -0
  33. package/bin/credit/dtos/CreditScheduleResponse.d.ts +18 -0
  34. package/bin/credit/dtos/CreditScheduleResponse.js +9 -0
  35. package/bin/credit/dtos/CreditStatementResponse.d.ts +11 -0
  36. package/bin/credit/dtos/CreditStatementResponse.js +9 -0
  37. package/bin/credit/dtos/EarlyPaymentRequest.d.ts +7 -0
  38. package/bin/credit/dtos/EarlyPaymentRequest.js +37 -0
  39. package/bin/credit/dtos/EarlyPaymentResponse.d.ts +11 -0
  40. package/bin/credit/dtos/EarlyPaymentResponse.js +6 -0
  41. package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +3 -0
  42. package/bin/credit/dtos/internal/CreditBalanceRequest.js +21 -0
  43. package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +11 -0
  44. package/bin/credit/dtos/internal/CreditCollectionRequest.js +59 -0
  45. package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +12 -0
  46. package/bin/credit/dtos/internal/CreditCollectionResponse.js +6 -0
  47. package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +7 -0
  48. package/bin/credit/dtos/internal/CreditDisbursementRequest.js +43 -0
  49. package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +8 -0
  50. package/bin/credit/dtos/internal/CreditDisbursementResponse.js +6 -0
  51. package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +3 -0
  52. package/bin/credit/dtos/internal/CreditProfileRequest.js +23 -0
  53. package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +5 -0
  54. package/bin/credit/dtos/internal/CreditReversalRequest.js +31 -0
  55. package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +7 -0
  56. package/bin/credit/dtos/internal/CreditReversalResponse.js +6 -0
  57. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +8 -0
  58. package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +46 -0
  59. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +8 -0
  60. package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +6 -0
  61. package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +3 -0
  62. package/bin/credit/dtos/internal/DocumentSignRequest.js +21 -0
  63. package/bin/credit/dtos/internal/LienApplyRequest.d.ts +7 -0
  64. package/bin/credit/dtos/internal/LienApplyRequest.js +45 -0
  65. package/bin/credit/enums/CollectionFrequencyEnum.d.ts +5 -0
  66. package/bin/credit/enums/CollectionFrequencyEnum.js +9 -0
  67. package/bin/credit/enums/CreditOperationEnum.d.ts +11 -0
  68. package/bin/credit/enums/CreditOperationEnum.js +15 -0
  69. package/bin/credit/enums/CreditStatusEnum.d.ts +12 -0
  70. package/bin/credit/enums/CreditStatusEnum.js +16 -0
  71. package/bin/credit/enums/DelinquencyLevelEnum.d.ts +9 -0
  72. package/bin/credit/enums/DelinquencyLevelEnum.js +13 -0
  73. package/bin/credit/enums/DocumentTypeEnum.d.ts +8 -0
  74. package/bin/credit/enums/DocumentTypeEnum.js +12 -0
  75. package/bin/credit/enums/OfferStatusEnum.d.ts +8 -0
  76. package/bin/credit/enums/OfferStatusEnum.js +12 -0
  77. package/bin/credit/enums/PaymentTypeEnum.d.ts +9 -0
  78. package/bin/credit/enums/PaymentTypeEnum.js +13 -0
  79. package/bin/credit/enums/ReconciliationStatusEnum.d.ts +6 -0
  80. package/bin/credit/enums/ReconciliationStatusEnum.js +10 -0
  81. package/bin/credit/enums/TransferStatusEnum.d.ts +8 -0
  82. package/bin/credit/enums/TransferStatusEnum.js +12 -0
  83. package/bin/platformRbac/dtos/AuthContext.d.ts +3 -3
  84. package/bin/platformRbac/tenantTypes.d.ts +4 -3
  85. package/bin/platformRbac/tenantTypes.js +4 -3
  86. package/bin/transaction/dtos/CreateDisputePrivateRequest.d.ts +19 -0
  87. package/bin/transaction/dtos/CreateDisputePrivateRequest.js +11 -0
  88. package/bin/transaction/dtos/ReopenDisputeRequest.d.ts +8 -0
  89. package/bin/transaction/dtos/ReopenDisputeRequest.js +11 -0
  90. package/bin/transaction/index.d.ts +2 -0
  91. package/bin/transaction/index.js +2 -0
  92. package/package.json +1 -1
  93. package/src/platformRbac/dtos/AuthContext.ts +3 -3
  94. package/src/platformRbac/tenantTypes.ts +4 -3
  95. package/src/transaction/dtos/CreateDisputePrivateRequest.ts +19 -0
  96. package/src/transaction/dtos/ReopenDisputeRequest.ts +8 -0
  97. 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,9 @@
1
+ export declare enum DelinquencyLevelEnum {
2
+ CURRENT = "CURRENT",
3
+ EARLY_1_7 = "EARLY_1_7",
4
+ EARLY_8_14 = "EARLY_8_14",
5
+ LATE_15_30 = "LATE_15_30",
6
+ LATE_31_60 = "LATE_31_60",
7
+ SEVERE_61_90 = "SEVERE_61_90",
8
+ DEFAULT_90_PLUS = "DEFAULT_90_PLUS"
9
+ }
@@ -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,8 @@
1
+ export declare enum OfferStatusEnum {
2
+ NOT_ELIGIBLE = "NOT_ELIGIBLE",
3
+ PRE_QUALIFIED = "PRE_QUALIFIED",
4
+ OFFER_AVAILABLE = "OFFER_AVAILABLE",
5
+ OFFER_CONFIGURED = "OFFER_CONFIGURED",
6
+ OFFER_ACCEPTED = "OFFER_ACCEPTED",
7
+ OFFER_EXPIRED = "OFFER_EXPIRED"
8
+ }
@@ -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,9 @@
1
+ export declare enum PaymentTypeEnum {
2
+ REGULAR = "REGULAR",
3
+ PARTIAL = "PARTIAL",
4
+ EARLY_ANTICIPATED = "EARLY_ANTICIPATED",
5
+ EARLY_ADVANCED = "EARLY_ADVANCED",
6
+ EARLY_SETTLEMENT = "EARLY_SETTLEMENT",
7
+ LIEN = "LIEN",
8
+ REVERSAL = "REVERSAL"
9
+ }
@@ -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,6 @@
1
+ export declare enum ReconciliationStatusEnum {
2
+ PENDING = "PENDING",
3
+ MATCHED = "MATCHED",
4
+ DISCREPANCY = "DISCREPANCY",
5
+ RESOLVED = "RESOLVED"
6
+ }
@@ -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,8 @@
1
+ export declare enum TransferStatusEnum {
2
+ PENDING = "PENDING",
3
+ APPROVED = "APPROVED",
4
+ IN_PROGRESS = "IN_PROGRESS",
5
+ COMPLETED = "COMPLETED",
6
+ FAILED = "FAILED",
7
+ REJECTED = "REJECTED"
8
+ }
@@ -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
- /** Bitset base64url de permisos efectivos (token-as-cache). Ausente fallback al resolver/claim. */
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
- /** Versión del catálogo (PERMS_VERSION) con la que se construyó permBits. */
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
- /** Epoch de permisos del tenant al momento de emitir el token. */
25
+ /** @deprecated DEC-RBAC-008: epoch de permisos. El authorizer ya no lo chequea. */
26
26
  permsEpoch?: number;
27
27
  }
@@ -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 rank de scopes: PLATFORM, TENANT (fijos) + los niveles de cada tipo en orden.
22
- * Las comparaciones de rank nunca cruzan tipos (un actor pertenece a un solo tenant de un solo tipo),
23
- * así que un orden global concatenado es seguro. Sin duplicados.
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 rank de scopes: PLATFORM, TENANT (fijos) + los niveles de cada tipo en orden.
41
- * Las comparaciones de rank nunca cruzan tipos (un actor pertenece a un solo tenant de un solo tipo),
42
- * así que un orden global concatenado es seguro. Sin duplicados.
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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.86.0",
3
+ "version": "3.87.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -19,10 +19,10 @@ export interface AuthContext {
19
19
  permissions: Permission[];
20
20
  resolvedAt: string;
21
21
  issuer?: string;
22
- /** Bitset base64url de permisos efectivos (token-as-cache). Ausente fallback al resolver/claim. */
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
- /** Versión del catálogo (PERMS_VERSION) con la que se construyó permBits. */
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
- /** Epoch de permisos del tenant al momento de emitir el token. */
26
+ /** @deprecated DEC-RBAC-008: epoch de permisos. El authorizer ya no lo chequea. */
27
27
  permsEpoch?: number;
28
28
  }
@@ -43,9 +43,10 @@ export function tableSuffixForLevel(type: TenantType, level: PermissionScope): s
43
43
  }
44
44
 
45
45
  /**
46
- * Orden global de rank de scopes: PLATFORM, TENANT (fijos) + los niveles de cada tipo en orden.
47
- * Las comparaciones de rank nunca cruzan tipos (un actor pertenece a un solo tenant de un solo tipo),
48
- * así que un orden global concatenado es seguro. Sin duplicados.
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
+ }
@@ -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';