@fiado/type-kit 3.122.0 → 3.124.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/bin/platformRbac/dtos/CreateTenantRequest.d.ts +4 -1
- package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +22 -0
- package/bin/{walletFunding/dtos/CancelFundingRequest.js → platformRbac/dtos/ResendOtpRequest.js} +16 -13
- package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +11 -0
- package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.js +36 -0
- package/bin/platformRbac/dtos/TenantDetailResponse.d.ts +19 -0
- package/bin/platformRbac/dtos/TenantDetailResponse.js +2 -0
- package/bin/platformRbac/dtos/TenantStatus.d.ts +12 -0
- package/bin/platformRbac/dtos/TenantStatus.js +2 -0
- package/bin/platformRbac/dtos/VerifyTenantInfraResponse.d.ts +15 -0
- package/bin/platformRbac/dtos/VerifyTenantInfraResponse.js +2 -0
- package/bin/platformRbac/enums/Permission.d.ts +5 -0
- package/bin/platformRbac/enums/Permission.js +5 -0
- package/bin/platformRbac/enums/PermissionCategory.d.ts +2 -0
- package/bin/platformRbac/enums/PermissionCategory.js +2 -0
- package/bin/platformRbac/tenantTypes.d.ts +6 -0
- package/bin/platformRbac/tenantTypes.js +6 -0
- package/bin/transactionProcessor/dtos/PublishFiadoTxRequest.d.ts +30 -0
- package/bin/{walletFunding/dtos/CancelFundingReferenceRequest.js → transactionProcessor/dtos/PublishFiadoTxRequest.js} +24 -10
- package/bin/transactionProcessor/dtos/PublishFiadoTxResponse.d.ts +14 -0
- package/bin/transactionProcessor/dtos/PublishFiadoTxResponse.js +2 -0
- package/bin/transactionProcessor/index.d.ts +2 -0
- package/bin/transactionProcessor/index.js +2 -0
- package/package.json +1 -1
- package/src/platformRbac/dtos/CreateTenantRequest.ts +4 -1
- package/src/platformRbac/enums/Permission.ts +5 -0
- package/src/platformRbac/enums/PermissionCategory.ts +2 -0
- package/src/platformRbac/tenantTypes.ts +6 -0
- package/src/transactionProcessor/dtos/PublishFiadoTxRequest.ts +34 -0
- package/src/transactionProcessor/dtos/PublishFiadoTxResponse.ts +14 -0
- package/src/transactionProcessor/index.ts +2 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +0 -6
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -7
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -6
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +0 -11
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +0 -14
- package/bin/walletFunding/dtos/CancelFundingResponse.js +0 -12
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +0 -3
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +0 -21
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +0 -7
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +0 -6
|
@@ -15,7 +15,10 @@ export declare class CreateTenantRequest {
|
|
|
15
15
|
adminName: string;
|
|
16
16
|
region: string;
|
|
17
17
|
tokenValidationMode?: TokenValidationMode;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Tipo de tenant a crear. Si se omite, el onboarding aplica su default (hoy: retail).
|
|
20
|
+
* @deprecated DEC-RBAC-062/063: el alta se hace por `applicationId`; `tenantType` se elimina al consolidar niveles. Migración pendiente; no usar en código nuevo.
|
|
21
|
+
*/
|
|
19
22
|
tenantType?: TenantType;
|
|
20
23
|
/** DEC-RBAC-034: aplicación (plantilla) de la que se crea el tenant; opcional, fallback a tenantType (back-compat). */
|
|
21
24
|
applicationId?: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MfaMethodEnum } from '../enums/MfaMethodEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
4
|
+
* Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
|
|
5
|
+
* identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
|
|
6
|
+
* El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
|
|
7
|
+
* siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
|
|
8
|
+
*/
|
|
9
|
+
export declare class ResendOtpRequest {
|
|
10
|
+
email: string;
|
|
11
|
+
tenantId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Respuesta del resend-otp. `session`/`mfaMethod` frescos del nuevo challenge CUSTOM_AUTH.
|
|
15
|
+
* Plain sin validators (no validamos lo que mandamos al cliente — fiado-validation-and-dtos § 7).
|
|
16
|
+
* Ambos opcionales: en los caminos de rechazo silencioso (anti-enumeración) o ramas sin CUSTOM_AUTH
|
|
17
|
+
* el server responde 200 genérico sin session ni método.
|
|
18
|
+
*/
|
|
19
|
+
export interface ResendOtpResponse {
|
|
20
|
+
session?: string;
|
|
21
|
+
mfaMethod?: MfaMethodEnum;
|
|
22
|
+
}
|
package/bin/{walletFunding/dtos/CancelFundingRequest.js → platformRbac/dtos/ResendOtpRequest.js}
RENAMED
|
@@ -9,25 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ResendOtpRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* `
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Body del POST /auth/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
17
|
+
* Reenvía el OTP del login re-disparando el challenge real CUSTOM_AUTH (EMAIL_OTP) para la
|
|
18
|
+
* identidad SIN password. `tenantId` obligatorio (DEC-064 — el picker ya lo resolvió, NO "solo email").
|
|
19
|
+
* El email se normaliza lowercase server-side. Postura anti-enumeración: respuesta 200 genérica
|
|
20
|
+
* siempre, sin filtrar existencia (ver AuthLoginManager.resendChallengeOtp).
|
|
20
21
|
*/
|
|
21
|
-
class
|
|
22
|
+
class ResendOtpRequest {
|
|
22
23
|
}
|
|
23
|
-
exports.
|
|
24
|
+
exports.ResendOtpRequest = ResendOtpRequest;
|
|
24
25
|
__decorate([
|
|
25
|
-
(0,
|
|
26
|
-
(0, class_validator_1.
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsEmail)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
29
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
30
|
+
], ResendOtpRequest.prototype, "email", void 0);
|
|
29
31
|
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
30
33
|
(0, class_validator_1.IsString)(),
|
|
31
|
-
(0, class_validator_1.
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
35
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
36
|
+
], ResendOtpRequest.prototype, "tenantId", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
3
|
+
* Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
|
|
4
|
+
* `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
|
|
5
|
+
* server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
|
|
6
|
+
* scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
|
|
7
|
+
*/
|
|
8
|
+
export declare class ResendSelfRegisterOtpRequest {
|
|
9
|
+
tenantId: string;
|
|
10
|
+
email: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.ResendSelfRegisterOtpRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* Body del POST /self-register/resend-otp (público, anónimo). DEC-RBAC-054.
|
|
17
|
+
* Re-envía el OTP del autoregistro (mecanismo messages-business, NO Cognito) tras validar un
|
|
18
|
+
* `pending` existente. Misma postura anti-enumeración del start. El email se normaliza lowercase
|
|
19
|
+
* server-side. DTO propio por endpoint (NO reusa SelfRegisterStartRequest, que exige roleId/scope/
|
|
20
|
+
* scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
|
|
21
|
+
*/
|
|
22
|
+
class ResendSelfRegisterOtpRequest {
|
|
23
|
+
}
|
|
24
|
+
exports.ResendSelfRegisterOtpRequest = ResendSelfRegisterOtpRequest;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ResendSelfRegisterOtpRequest.prototype, "tenantId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_validator_1.IsEmail)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ResendSelfRegisterOtpRequest.prototype, "email", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TenantStatus } from './TenantStatus';
|
|
2
|
+
/**
|
|
3
|
+
* Output del GET backoffice de detalle de tenant (F-11). Response plain sin validators
|
|
4
|
+
* (no validamos lo que mandamos al cliente — fiado-validation-and-dtos § 7).
|
|
5
|
+
*
|
|
6
|
+
* Superficie de contrato que el frontend consume para la feature de infra (DEC-RBAC-058/059):
|
|
7
|
+
* `status` (que ahora incluye `pending-infra`) e `infraRequirements` (tablas del silo faltantes,
|
|
8
|
+
* presente solo en `pending-infra`). El detalle completo del tenant (cognitoPool, branding,
|
|
9
|
+
* securityPolicy, etc.) lo arma el manager a partir del Row; este DTO declara los campos del
|
|
10
|
+
* contrato relevantes a la feature sin duplicar el shape interno del Row.
|
|
11
|
+
*/
|
|
12
|
+
export interface TenantDetailResponse {
|
|
13
|
+
tenantId: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
tablePrefix: string;
|
|
16
|
+
status: TenantStatus;
|
|
17
|
+
/** Nombres de tablas del silo faltantes. Presente solo cuando `status === 'pending-infra'`. */
|
|
18
|
+
infraRequirements?: string[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estado de un tenant del platform-rbac-business (F-11 — onboarding de tenant).
|
|
3
|
+
*
|
|
4
|
+
* - `provisioning`: saga de onboarding en curso (estado transitorio).
|
|
5
|
+
* - `active`: tenant operativo (config + pool + roles sembrados).
|
|
6
|
+
* - `suspended`: tenant deshabilitado (saga abortada y compensada, o suspensión manual).
|
|
7
|
+
* - `pending-infra` (DEC-RBAC-058): el pre-check de infra encontró tablas del silo faltantes.
|
|
8
|
+
* El tenant quedó creado pero inutilizable hasta que infra cree las tablas; los nombres
|
|
9
|
+
* faltantes viajan en `infraRequirements`. No se sembraron roles. Re-verificable vía
|
|
10
|
+
* `POST /platform/tenants/{tenantId}/verify-infra` (DEC-RBAC-059).
|
|
11
|
+
*/
|
|
12
|
+
export type TenantStatus = 'provisioning' | 'active' | 'suspended' | 'pending-infra';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TenantStatus } from './TenantStatus';
|
|
2
|
+
/**
|
|
3
|
+
* Output del POST backoffice `verify-infra` (DEC-RBAC-059) — re-verificación de la infra del silo
|
|
4
|
+
* de un tenant `pending-infra`. Response plain sin validators (fiado-validation-and-dtos § 7).
|
|
5
|
+
* El `tenantId` viaja en el path, no hay request DTO.
|
|
6
|
+
*
|
|
7
|
+
* - Si ya están todas las tablas → siembra roles diferida → `status === 'active'` (sin `infraRequirements`).
|
|
8
|
+
* - Si aún faltan → `status === 'pending-infra'` + `infraRequirements` con los faltantes actuales.
|
|
9
|
+
* - Si el tenant no estaba `pending-infra` → no-op idempotente: devuelve el status actual.
|
|
10
|
+
*/
|
|
11
|
+
export interface VerifyTenantInfraResponse {
|
|
12
|
+
status: TenantStatus;
|
|
13
|
+
/** Nombres de tablas del silo aún faltantes. Presente solo cuando `status === 'pending-infra'`. */
|
|
14
|
+
infraRequirements?: string[];
|
|
15
|
+
}
|
|
@@ -92,6 +92,7 @@ export declare enum Permission {
|
|
|
92
92
|
RETAIL_PRODUCT_VIEW = "retail.product.view",
|
|
93
93
|
RETAIL_PRODUCT_UPDATE = "retail.product.update",
|
|
94
94
|
RETAIL_PRODUCT_DELETE = "retail.product.delete",
|
|
95
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'retail.product.mdm.config' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
95
96
|
RETAIL_PRODUCT_MDM_CONFIG = "retail.product.mdm_config",
|
|
96
97
|
RETAIL_INVENTORY_LIST = "retail.inventory.list",
|
|
97
98
|
RETAIL_INVENTORY_VIEW = "retail.inventory.view",
|
|
@@ -117,16 +118,20 @@ export declare enum Permission {
|
|
|
117
118
|
MDM_DEVICE_DEACTIVATE = "mdm.device.deactivate",
|
|
118
119
|
MDM_DEVICE_LOCK_MANUAL = "mdm.device.lock.manual",
|
|
119
120
|
MDM_DEVICE_UNLOCK_MANUAL = "mdm.device.unlock.manual",
|
|
121
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.device.pin.unlock' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
120
122
|
MDM_DEVICE_PIN_UNLOCK = "mdm.device.pin_unlock",
|
|
123
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.device.extend.validity' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
121
124
|
MDM_DEVICE_EXTEND_VALIDITY = "mdm.device.extend_validity",
|
|
122
125
|
MDM_DEVICE_NOTIFY = "mdm.device.notify",
|
|
123
126
|
MDM_DEVICE_STATUS_VIEW = "mdm.device.status.view",
|
|
127
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.operation.log.view' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
124
128
|
MDM_OPERATION_LOG_VIEW = "mdm.operation_log.view",
|
|
125
129
|
MDM_TEST = "mdm.test",
|
|
126
130
|
PAY_TRANSACTION_VIEW = "pay.transaction.view",
|
|
127
131
|
AGENTS_APP_ACCESS = "agents.app.access",
|
|
128
132
|
AGENTS_AGENT_LIST = "agents.agent.list",
|
|
129
133
|
AGENTS_AGENT_CREATE = "agents.agent.create",
|
|
134
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'agents.agent.create.bulk' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
130
135
|
AGENTS_AGENT_CREATE_BULK = "agents.agent.create_bulk",
|
|
131
136
|
AGENTS_AGENT_MOVE = "agents.agent.move",
|
|
132
137
|
AGENTS_AGENT_DELETE = "agents.agent.delete",
|
|
@@ -125,6 +125,7 @@ var Permission;
|
|
|
125
125
|
Permission["RETAIL_PRODUCT_VIEW"] = "retail.product.view";
|
|
126
126
|
Permission["RETAIL_PRODUCT_UPDATE"] = "retail.product.update";
|
|
127
127
|
Permission["RETAIL_PRODUCT_DELETE"] = "retail.product.delete";
|
|
128
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'retail.product.mdm.config' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
128
129
|
Permission["RETAIL_PRODUCT_MDM_CONFIG"] = "retail.product.mdm_config";
|
|
129
130
|
Permission["RETAIL_INVENTORY_LIST"] = "retail.inventory.list";
|
|
130
131
|
Permission["RETAIL_INVENTORY_VIEW"] = "retail.inventory.view";
|
|
@@ -156,10 +157,13 @@ var Permission;
|
|
|
156
157
|
Permission["MDM_DEVICE_DEACTIVATE"] = "mdm.device.deactivate";
|
|
157
158
|
Permission["MDM_DEVICE_LOCK_MANUAL"] = "mdm.device.lock.manual";
|
|
158
159
|
Permission["MDM_DEVICE_UNLOCK_MANUAL"] = "mdm.device.unlock.manual";
|
|
160
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.device.pin.unlock' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
159
161
|
Permission["MDM_DEVICE_PIN_UNLOCK"] = "mdm.device.pin_unlock";
|
|
162
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.device.extend.validity' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
160
163
|
Permission["MDM_DEVICE_EXTEND_VALIDITY"] = "mdm.device.extend_validity";
|
|
161
164
|
Permission["MDM_DEVICE_NOTIFY"] = "mdm.device.notify";
|
|
162
165
|
Permission["MDM_DEVICE_STATUS_VIEW"] = "mdm.device.status.view";
|
|
166
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.operation.log.view' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
163
167
|
Permission["MDM_OPERATION_LOG_VIEW"] = "mdm.operation_log.view";
|
|
164
168
|
Permission["MDM_TEST"] = "mdm.test";
|
|
165
169
|
// ====================================================
|
|
@@ -177,6 +181,7 @@ var Permission;
|
|
|
177
181
|
Permission["AGENTS_APP_ACCESS"] = "agents.app.access";
|
|
178
182
|
Permission["AGENTS_AGENT_LIST"] = "agents.agent.list";
|
|
179
183
|
Permission["AGENTS_AGENT_CREATE"] = "agents.agent.create";
|
|
184
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'agents.agent.create.bulk' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
180
185
|
Permission["AGENTS_AGENT_CREATE_BULK"] = "agents.agent.create_bulk";
|
|
181
186
|
Permission["AGENTS_AGENT_MOVE"] = "agents.agent.move";
|
|
182
187
|
Permission["AGENTS_AGENT_DELETE"] = "agents.agent.delete";
|
|
@@ -6,10 +6,12 @@ export declare enum PermissionCategory {
|
|
|
6
6
|
RBAC = "rbac",
|
|
7
7
|
PLATFORM = "platform",
|
|
8
8
|
TENANT = "tenant",
|
|
9
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
9
10
|
RETAIL = "retail",
|
|
10
11
|
LEND = "lend",
|
|
11
12
|
MDM = "mdm",
|
|
12
13
|
AUDIT = "audit",
|
|
13
14
|
PAY = "pay",
|
|
15
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
14
16
|
AGENTS = "agents"
|
|
15
17
|
}
|
|
@@ -10,10 +10,12 @@ var PermissionCategory;
|
|
|
10
10
|
PermissionCategory["RBAC"] = "rbac";
|
|
11
11
|
PermissionCategory["PLATFORM"] = "platform";
|
|
12
12
|
PermissionCategory["TENANT"] = "tenant";
|
|
13
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
13
14
|
PermissionCategory["RETAIL"] = "retail";
|
|
14
15
|
PermissionCategory["LEND"] = "lend";
|
|
15
16
|
PermissionCategory["MDM"] = "mdm";
|
|
16
17
|
PermissionCategory["AUDIT"] = "audit";
|
|
17
18
|
PermissionCategory["PAY"] = "pay";
|
|
19
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
18
20
|
PermissionCategory["AGENTS"] = "agents";
|
|
19
21
|
})(PermissionCategory || (exports.PermissionCategory = PermissionCategory = {}));
|
|
@@ -2,6 +2,9 @@ import { PermissionScope } from './enums/PermissionScope';
|
|
|
2
2
|
/**
|
|
3
3
|
* Tipos de tenant soportados por el rbac-business. Cada tipo define su propia
|
|
4
4
|
* jerarquía de niveles DEBAJO de TENANT (data-driven). Hoy solo existe `retail`.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated DEC-RBAC-062/063: el modelo de tipos de tenant se consolida en niveles genéricos
|
|
7
|
+
* (LEVEL_1..n) data-driven. Migración de tenants pendiente; no usar en código nuevo.
|
|
5
8
|
*/
|
|
6
9
|
export declare enum TenantType {
|
|
7
10
|
RETAIL = "retail",
|
|
@@ -14,8 +17,11 @@ interface TenantTypeDef {
|
|
|
14
17
|
/** Sufijo de tabla DDB por nivel (el prefix del tenant se antepone en runtime). */
|
|
15
18
|
tableSuffix: Partial<Record<PermissionScope, string>>;
|
|
16
19
|
}
|
|
20
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
17
21
|
export declare const TENANT_TYPES: Record<TenantType, TenantTypeDef>;
|
|
22
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
18
23
|
export declare function levelsOf(type: TenantType): PermissionScope[];
|
|
24
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
19
25
|
export declare function tableSuffixForLevel(type: TenantType, level: PermissionScope): string | undefined;
|
|
20
26
|
/**
|
|
21
27
|
* Orden global de scopes para ORDENAR (ej. UI): PLATFORM, TENANT + niveles de cada tipo.
|
|
@@ -8,12 +8,16 @@ const PermissionScope_1 = require("./enums/PermissionScope");
|
|
|
8
8
|
/**
|
|
9
9
|
* Tipos de tenant soportados por el rbac-business. Cada tipo define su propia
|
|
10
10
|
* jerarquía de niveles DEBAJO de TENANT (data-driven). Hoy solo existe `retail`.
|
|
11
|
+
*
|
|
12
|
+
* @deprecated DEC-RBAC-062/063: el modelo de tipos de tenant se consolida en niveles genéricos
|
|
13
|
+
* (LEVEL_1..n) data-driven. Migración de tenants pendiente; no usar en código nuevo.
|
|
11
14
|
*/
|
|
12
15
|
var TenantType;
|
|
13
16
|
(function (TenantType) {
|
|
14
17
|
TenantType["RETAIL"] = "retail";
|
|
15
18
|
TenantType["AGENTS"] = "agents";
|
|
16
19
|
})(TenantType || (exports.TenantType = TenantType = {}));
|
|
20
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
17
21
|
exports.TENANT_TYPES = {
|
|
18
22
|
[TenantType.RETAIL]: {
|
|
19
23
|
displayName: 'Retail',
|
|
@@ -30,9 +34,11 @@ exports.TENANT_TYPES = {
|
|
|
30
34
|
tableSuffix: { [PermissionScope_1.PermissionScope.GROUP]: 'SharedGroup' },
|
|
31
35
|
},
|
|
32
36
|
};
|
|
37
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
33
38
|
function levelsOf(type) {
|
|
34
39
|
return exports.TENANT_TYPES[type].levels;
|
|
35
40
|
}
|
|
41
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
36
42
|
function tableSuffixForLevel(type, level) {
|
|
37
43
|
return exports.TENANT_TYPES[type].tableSuffix[level];
|
|
38
44
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request del endpoint `POST /wallet-funding/publish` del processor.
|
|
3
|
+
*
|
|
4
|
+
* Publica el evento de FiadoTx (tupla EQ_CASH_SA / CASH_IN del wallet-funding
|
|
5
|
+
* cash-in) al SQS `TRANSACTION_QUEUE` para que `transaction-business` lo
|
|
6
|
+
* consuma y persista en `FiadoTx_GT`.
|
|
7
|
+
*
|
|
8
|
+
* Best-effort: el caller (equality-connector post-settlement, o el cron de
|
|
9
|
+
* gap-reconciliation del mismo connector) debe tratar el error como
|
|
10
|
+
* recuperable — el reconciler T+0 rescata gaps que queden.
|
|
11
|
+
*
|
|
12
|
+
* Ver spec 15 §6.2 (processor mantiene ownership del SQS publish) + §5.1
|
|
13
|
+
* (reconciler en el connector).
|
|
14
|
+
*/
|
|
15
|
+
export declare class PublishFiadoTxRequest {
|
|
16
|
+
/** Identificador idempotente del evento. Sugerido: `${providerName}:${providerTxId}`. */
|
|
17
|
+
idempotencyKey: string;
|
|
18
|
+
/**
|
|
19
|
+
* Spec completo de la tupla FiadoTx a persistir. Shape generado por el
|
|
20
|
+
* processor en `walletFundingValidate()` (campo `fiadoTxSpec` de la response).
|
|
21
|
+
* El caller lo recibe del processor y lo reenvía sin modificar.
|
|
22
|
+
*
|
|
23
|
+
* Es `unknown` aquí (no tipado fuerte) porque el shape interno del processor
|
|
24
|
+
* puede cambiar sin breaking change para los callers — el processor es dueño
|
|
25
|
+
* del shape y de su serialización al SQS.
|
|
26
|
+
*/
|
|
27
|
+
fiadoTxSpec: Record<string, unknown>;
|
|
28
|
+
/** Contexto opcional para logs/auditoría (ej. "post-settlement" | "reconciler-gap"). */
|
|
29
|
+
origin?: string;
|
|
30
|
+
}
|
|
@@ -9,23 +9,37 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.PublishFiadoTxRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Request del endpoint `POST /wallet-funding/publish` del processor.
|
|
16
|
+
*
|
|
17
|
+
* Publica el evento de FiadoTx (tupla EQ_CASH_SA / CASH_IN del wallet-funding
|
|
18
|
+
* cash-in) al SQS `TRANSACTION_QUEUE` para que `transaction-business` lo
|
|
19
|
+
* consuma y persista en `FiadoTx_GT`.
|
|
20
|
+
*
|
|
21
|
+
* Best-effort: el caller (equality-connector post-settlement, o el cron de
|
|
22
|
+
* gap-reconciliation del mismo connector) debe tratar el error como
|
|
23
|
+
* recuperable — el reconciler T+0 rescata gaps que queden.
|
|
24
|
+
*
|
|
25
|
+
* Ver spec 15 §6.2 (processor mantiene ownership del SQS publish) + §5.1
|
|
26
|
+
* (reconciler en el connector).
|
|
27
|
+
*/
|
|
28
|
+
class PublishFiadoTxRequest {
|
|
15
29
|
}
|
|
16
|
-
exports.
|
|
30
|
+
exports.PublishFiadoTxRequest = PublishFiadoTxRequest;
|
|
17
31
|
__decorate([
|
|
18
32
|
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.MaxLength)(
|
|
33
|
+
(0, class_validator_1.MaxLength)(128),
|
|
20
34
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
35
|
+
], PublishFiadoTxRequest.prototype, "idempotencyKey", void 0);
|
|
22
36
|
__decorate([
|
|
23
|
-
(0, class_validator_1.
|
|
24
|
-
(
|
|
25
|
-
|
|
26
|
-
], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
|
|
37
|
+
(0, class_validator_1.IsObject)(),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], PublishFiadoTxRequest.prototype, "fiadoTxSpec", void 0);
|
|
27
40
|
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
42
|
(0, class_validator_1.IsString)(),
|
|
29
43
|
(0, class_validator_1.MaxLength)(64),
|
|
30
44
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
45
|
+
], PublishFiadoTxRequest.prototype, "origin", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response del endpoint `POST /wallet-funding/publish` del processor.
|
|
3
|
+
*
|
|
4
|
+
* Best-effort: status="FAILED" indica que el publish al SQS no se ejecutó
|
|
5
|
+
* (sqs.sendMessage falló). El caller debe loggear y continuar — el
|
|
6
|
+
* reconciler T+0 del connector eventualmente recuperará el gap.
|
|
7
|
+
*
|
|
8
|
+
* Ver spec 15 §6.2.
|
|
9
|
+
*/
|
|
10
|
+
export interface PublishFiadoTxResponse {
|
|
11
|
+
status: "OK" | "FAILED";
|
|
12
|
+
/** Mensaje breve para logs. Vacío en happy path. */
|
|
13
|
+
message?: string;
|
|
14
|
+
}
|
|
@@ -39,6 +39,8 @@ export * from './dtos/ProviderProcessServicePaymentTransactionRequest';
|
|
|
39
39
|
export * from './dtos/ProviderProcessServicePaymentTransactionResponse';
|
|
40
40
|
export * from './dtos/AuthorizeRenewalPreAuthRequest';
|
|
41
41
|
export * from './dtos/AuthorizeRenewalPreAuthResponse';
|
|
42
|
+
export * from './dtos/PublishFiadoTxRequest';
|
|
43
|
+
export * from './dtos/PublishFiadoTxResponse';
|
|
42
44
|
export * from './enums/TransactionProcessorCodesEnum';
|
|
43
45
|
export * from './enums/AsyncTxStatusEnum';
|
|
44
46
|
export * from './enums/AppEnum';
|
|
@@ -55,6 +55,8 @@ __exportStar(require("./dtos/ProviderProcessServicePaymentTransactionRequest"),
|
|
|
55
55
|
__exportStar(require("./dtos/ProviderProcessServicePaymentTransactionResponse"), exports);
|
|
56
56
|
__exportStar(require("./dtos/AuthorizeRenewalPreAuthRequest"), exports);
|
|
57
57
|
__exportStar(require("./dtos/AuthorizeRenewalPreAuthResponse"), exports);
|
|
58
|
+
__exportStar(require("./dtos/PublishFiadoTxRequest"), exports);
|
|
59
|
+
__exportStar(require("./dtos/PublishFiadoTxResponse"), exports);
|
|
58
60
|
__exportStar(require("./enums/TransactionProcessorCodesEnum"), exports);
|
|
59
61
|
__exportStar(require("./enums/AsyncTxStatusEnum"), exports);
|
|
60
62
|
__exportStar(require("./enums/AppEnum"), exports);
|
package/package.json
CHANGED
|
@@ -21,7 +21,10 @@ export class CreateTenantRequest {
|
|
|
21
21
|
// DEC-RBAC-052: passwordMinLength purgado — la política de password es global (env vars) y la
|
|
22
22
|
// enforce Cognito (política nativa del pool), ya no es per-tenant en el create.
|
|
23
23
|
@Expose() @IsOptional() @IsEnum(TokenValidationMode) tokenValidationMode?: TokenValidationMode;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Tipo de tenant a crear. Si se omite, el onboarding aplica su default (hoy: retail).
|
|
26
|
+
* @deprecated DEC-RBAC-062/063: el alta se hace por `applicationId`; `tenantType` se elimina al consolidar niveles. Migración pendiente; no usar en código nuevo.
|
|
27
|
+
*/
|
|
25
28
|
@Expose() @IsOptional() @IsEnum(TenantType) tenantType?: TenantType;
|
|
26
29
|
/** DEC-RBAC-034: aplicación (plantilla) de la que se crea el tenant; opcional, fallback a tenantType (back-compat). */
|
|
27
30
|
@Expose() @IsOptional() @IsString() applicationId?: string;
|
|
@@ -122,6 +122,7 @@ export enum Permission {
|
|
|
122
122
|
RETAIL_PRODUCT_VIEW = 'retail.product.view',
|
|
123
123
|
RETAIL_PRODUCT_UPDATE = 'retail.product.update',
|
|
124
124
|
RETAIL_PRODUCT_DELETE = 'retail.product.delete',
|
|
125
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'retail.product.mdm.config' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
125
126
|
RETAIL_PRODUCT_MDM_CONFIG = 'retail.product.mdm_config',
|
|
126
127
|
RETAIL_INVENTORY_LIST = 'retail.inventory.list',
|
|
127
128
|
RETAIL_INVENTORY_VIEW = 'retail.inventory.view',
|
|
@@ -155,10 +156,13 @@ export enum Permission {
|
|
|
155
156
|
MDM_DEVICE_DEACTIVATE = 'mdm.device.deactivate',
|
|
156
157
|
MDM_DEVICE_LOCK_MANUAL = 'mdm.device.lock.manual',
|
|
157
158
|
MDM_DEVICE_UNLOCK_MANUAL = 'mdm.device.unlock.manual',
|
|
159
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.device.pin.unlock' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
158
160
|
MDM_DEVICE_PIN_UNLOCK = 'mdm.device.pin_unlock',
|
|
161
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.device.extend.validity' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
159
162
|
MDM_DEVICE_EXTEND_VALIDITY = 'mdm.device.extend_validity',
|
|
160
163
|
MDM_DEVICE_NOTIFY = 'mdm.device.notify',
|
|
161
164
|
MDM_DEVICE_STATUS_VIEW = 'mdm.device.status.view',
|
|
165
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'mdm.operation.log.view' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
162
166
|
MDM_OPERATION_LOG_VIEW = 'mdm.operation_log.view',
|
|
163
167
|
MDM_TEST = 'mdm.test',
|
|
164
168
|
|
|
@@ -178,6 +182,7 @@ export enum Permission {
|
|
|
178
182
|
AGENTS_APP_ACCESS = 'agents.app.access',
|
|
179
183
|
AGENTS_AGENT_LIST = 'agents.agent.list',
|
|
180
184
|
AGENTS_AGENT_CREATE = 'agents.agent.create',
|
|
185
|
+
/** @deprecated DEC-RBAC-061: se renombrará a 'agents.agent.create.bulk' (naming con puntos). Migración de datos coordinada por backend pendiente; no usar en código nuevo. */
|
|
181
186
|
AGENTS_AGENT_CREATE_BULK = 'agents.agent.create_bulk',
|
|
182
187
|
AGENTS_AGENT_MOVE = 'agents.agent.move',
|
|
183
188
|
AGENTS_AGENT_DELETE = 'agents.agent.delete',
|
|
@@ -6,10 +6,12 @@ export enum PermissionCategory {
|
|
|
6
6
|
RBAC = 'rbac',
|
|
7
7
|
PLATFORM = 'platform',
|
|
8
8
|
TENANT = 'tenant',
|
|
9
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
9
10
|
RETAIL = 'retail',
|
|
10
11
|
LEND = 'lend',
|
|
11
12
|
MDM = 'mdm',
|
|
12
13
|
AUDIT = 'audit',
|
|
13
14
|
PAY = 'pay',
|
|
15
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
14
16
|
AGENTS = 'agents',
|
|
15
17
|
}
|
|
@@ -3,6 +3,9 @@ import { PermissionScope } from './enums/PermissionScope';
|
|
|
3
3
|
/**
|
|
4
4
|
* Tipos de tenant soportados por el rbac-business. Cada tipo define su propia
|
|
5
5
|
* jerarquía de niveles DEBAJO de TENANT (data-driven). Hoy solo existe `retail`.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated DEC-RBAC-062/063: el modelo de tipos de tenant se consolida en niveles genéricos
|
|
8
|
+
* (LEVEL_1..n) data-driven. Migración de tenants pendiente; no usar en código nuevo.
|
|
6
9
|
*/
|
|
7
10
|
export enum TenantType {
|
|
8
11
|
RETAIL = 'retail',
|
|
@@ -17,6 +20,7 @@ interface TenantTypeDef {
|
|
|
17
20
|
tableSuffix: Partial<Record<PermissionScope, string>>;
|
|
18
21
|
}
|
|
19
22
|
|
|
23
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
20
24
|
export const TENANT_TYPES: Record<TenantType, TenantTypeDef> = {
|
|
21
25
|
[TenantType.RETAIL]: {
|
|
22
26
|
displayName: 'Retail',
|
|
@@ -34,10 +38,12 @@ export const TENANT_TYPES: Record<TenantType, TenantTypeDef> = {
|
|
|
34
38
|
},
|
|
35
39
|
};
|
|
36
40
|
|
|
41
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
37
42
|
export function levelsOf(type: TenantType): PermissionScope[] {
|
|
38
43
|
return TENANT_TYPES[type].levels;
|
|
39
44
|
}
|
|
40
45
|
|
|
46
|
+
/** @deprecated DEC-RBAC-062/063: se consolida en niveles genéricos (LEVEL_n) data-driven. Migración de tenants pendiente; no usar en código nuevo. */
|
|
41
47
|
export function tableSuffixForLevel(type: TenantType, level: PermissionScope): string | undefined {
|
|
42
48
|
return TENANT_TYPES[type].tableSuffix[level];
|
|
43
49
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IsObject, IsOptional, IsString, MaxLength } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request del endpoint `POST /wallet-funding/publish` del processor.
|
|
5
|
+
*
|
|
6
|
+
* Publica el evento de FiadoTx (tupla EQ_CASH_SA / CASH_IN del wallet-funding
|
|
7
|
+
* cash-in) al SQS `TRANSACTION_QUEUE` para que `transaction-business` lo
|
|
8
|
+
* consuma y persista en `FiadoTx_GT`.
|
|
9
|
+
*
|
|
10
|
+
* Best-effort: el caller (equality-connector post-settlement, o el cron de
|
|
11
|
+
* gap-reconciliation del mismo connector) debe tratar el error como
|
|
12
|
+
* recuperable — el reconciler T+0 rescata gaps que queden.
|
|
13
|
+
*
|
|
14
|
+
* Ver spec 15 §6.2 (processor mantiene ownership del SQS publish) + §5.1
|
|
15
|
+
* (reconciler en el connector).
|
|
16
|
+
*/
|
|
17
|
+
export class PublishFiadoTxRequest {
|
|
18
|
+
/** Identificador idempotente del evento. Sugerido: `${providerName}:${providerTxId}`. */
|
|
19
|
+
@IsString() @MaxLength(128) idempotencyKey!: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Spec completo de la tupla FiadoTx a persistir. Shape generado por el
|
|
23
|
+
* processor en `walletFundingValidate()` (campo `fiadoTxSpec` de la response).
|
|
24
|
+
* El caller lo recibe del processor y lo reenvía sin modificar.
|
|
25
|
+
*
|
|
26
|
+
* Es `unknown` aquí (no tipado fuerte) porque el shape interno del processor
|
|
27
|
+
* puede cambiar sin breaking change para los callers — el processor es dueño
|
|
28
|
+
* del shape y de su serialización al SQS.
|
|
29
|
+
*/
|
|
30
|
+
@IsObject() fiadoTxSpec!: Record<string, unknown>;
|
|
31
|
+
|
|
32
|
+
/** Contexto opcional para logs/auditoría (ej. "post-settlement" | "reconciler-gap"). */
|
|
33
|
+
@IsOptional() @IsString() @MaxLength(64) origin?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response del endpoint `POST /wallet-funding/publish` del processor.
|
|
3
|
+
*
|
|
4
|
+
* Best-effort: status="FAILED" indica que el publish al SQS no se ejecutó
|
|
5
|
+
* (sqs.sendMessage falló). El caller debe loggear y continuar — el
|
|
6
|
+
* reconciler T+0 del connector eventualmente recuperará el gap.
|
|
7
|
+
*
|
|
8
|
+
* Ver spec 15 §6.2.
|
|
9
|
+
*/
|
|
10
|
+
export interface PublishFiadoTxResponse {
|
|
11
|
+
status: "OK" | "FAILED";
|
|
12
|
+
/** Mensaje breve para logs. Vacío en happy path. */
|
|
13
|
+
message?: string;
|
|
14
|
+
}
|
|
@@ -39,6 +39,8 @@ export * from './dtos/ProviderProcessServicePaymentTransactionRequest';
|
|
|
39
39
|
export * from './dtos/ProviderProcessServicePaymentTransactionResponse';
|
|
40
40
|
export * from './dtos/AuthorizeRenewalPreAuthRequest';
|
|
41
41
|
export * from './dtos/AuthorizeRenewalPreAuthResponse';
|
|
42
|
+
export * from './dtos/PublishFiadoTxRequest';
|
|
43
|
+
export * from './dtos/PublishFiadoTxResponse';
|
|
42
44
|
|
|
43
45
|
export * from './enums/TransactionProcessorCodesEnum';
|
|
44
46
|
export * from './enums/AsyncTxStatusEnum';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
-
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
export declare class CancelFundingReferenceResponse {
|
|
4
|
-
reference: string;
|
|
5
|
-
status: BenefitPaymentStatusEnum;
|
|
6
|
-
errorCode?: WalletFundingErrorCodeEnum;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
3
|
-
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
4
|
-
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
5
|
-
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
6
|
-
* porque vino en la respuesta del authorize).
|
|
7
|
-
*/
|
|
8
|
-
export declare class CancelFundingRequest {
|
|
9
|
-
idempotencyKey: string;
|
|
10
|
-
providerModuleName: string;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
-
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
/**
|
|
4
|
-
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
5
|
-
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
6
|
-
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
7
|
-
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CancelFundingResponse {
|
|
10
|
-
reference: string;
|
|
11
|
-
status: BenefitPaymentStatusEnum;
|
|
12
|
-
errorCode?: WalletFundingErrorCodeEnum;
|
|
13
|
-
message?: string;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CancelFundingResponse = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
6
|
-
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
7
|
-
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
8
|
-
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
9
|
-
*/
|
|
10
|
-
class CancelFundingResponse {
|
|
11
|
-
}
|
|
12
|
-
exports.CancelFundingResponse = CancelFundingResponse;
|
|
@@ -1,21 +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.CancelWalletFundingRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CancelWalletFundingRequest {
|
|
15
|
-
}
|
|
16
|
-
exports.CancelWalletFundingRequest = CancelWalletFundingRequest;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.MaxLength)(64),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CancelWalletFundingRequest.prototype, "idempotencyKey", void 0);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
-
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
export declare class CancelWalletFundingResponse {
|
|
4
|
-
status: BenefitPaymentStatusEnum;
|
|
5
|
-
errorCode?: WalletFundingErrorCodeEnum;
|
|
6
|
-
reference?: string;
|
|
7
|
-
}
|