@fiado/type-kit 3.105.0 → 3.107.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 +1 -0
- package/bin/platformRbac/enums/Permission.js +7 -0
- package/bin/walletFunding/dtos/AuthorizeFundingResponse.d.ts +2 -1
- package/bin/walletFunding/dtos/AuthorizeWalletFundingResponse.d.ts +1 -1
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +2 -1
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +1 -1
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +1 -1
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +1 -1
- package/bin/walletFunding/dtos/CancelFundingRequest.js +1 -1
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +1 -1
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +1 -1
- package/bin/walletFunding/dtos/CreateFundingReferenceRequest.d.ts +0 -1
- package/bin/walletFunding/dtos/CreateFundingReferenceRequest.js +0 -5
- package/bin/walletFunding/dtos/CreateFundingReferenceResponse.d.ts +6 -1
- package/bin/walletFunding/dtos/CreditWalletFundingResponse.d.ts +6 -1
- package/bin/walletFunding/dtos/ListWalletFundingReferencesResponse.d.ts +2 -1
- package/package.json +1 -1
- package/src/platformRbac/enums/Permission.ts +7 -0
- package/src/walletFunding/dtos/AuthorizeFundingResponse.ts +2 -1
- package/src/walletFunding/dtos/AuthorizeWalletFundingResponse.ts +1 -1
- package/src/walletFunding/dtos/CancelFundingReferenceRequest.ts +2 -1
- package/src/walletFunding/dtos/CancelFundingReferenceResponse.ts +1 -1
- package/src/walletFunding/dtos/CancelFundingRequest.ts +1 -1
- package/src/walletFunding/dtos/CancelFundingResponse.ts +1 -1
- package/src/walletFunding/dtos/CancelWalletFundingResponse.ts +1 -1
- package/src/walletFunding/dtos/CreateFundingReferenceRequest.ts +0 -1
- package/src/walletFunding/dtos/CreateFundingReferenceResponse.ts +6 -1
- package/src/walletFunding/dtos/CreditWalletFundingResponse.ts +6 -1
- package/src/walletFunding/dtos/ListWalletFundingReferencesResponse.ts +2 -1
|
@@ -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`] = `785870733`;
|
|
4
4
|
|
|
5
5
|
exports[`PERMISSION_BIT_ORDER append-only: snapshot del ORDEN COMPLETO (rompe ante cualquier reorden/inserción) 1`] = `
|
|
6
6
|
[
|
|
@@ -122,5 +122,6 @@ exports[`PERMISSION_BIT_ORDER append-only: snapshot del ORDEN COMPLETO (rompe an
|
|
|
122
122
|
"agents.person.create",
|
|
123
123
|
"platform.tenant.userfields.manage",
|
|
124
124
|
"agents.app.access",
|
|
125
|
+
"platform.user.create.lateral",
|
|
125
126
|
]
|
|
126
127
|
`;
|
|
@@ -46,6 +46,7 @@ export declare enum Permission {
|
|
|
46
46
|
PLATFORM_USER_DISABLE = "platform.user.disable",
|
|
47
47
|
PLATFORM_USER_ENABLE = "platform.user.enable",
|
|
48
48
|
PLATFORM_USER_DELETE = "platform.user.delete",
|
|
49
|
+
PLATFORM_USER_CREATE_LATERAL = "platform.user.create.lateral",
|
|
49
50
|
PLATFORM_ROLE_CREATE = "platform.role.create",
|
|
50
51
|
PLATFORM_ROLE_LIST = "platform.role.list",
|
|
51
52
|
PLATFORM_ROLE_UPDATE = "platform.role.update",
|
|
@@ -58,6 +58,10 @@ var Permission;
|
|
|
58
58
|
Permission["PLATFORM_USER_DISABLE"] = "platform.user.disable";
|
|
59
59
|
Permission["PLATFORM_USER_ENABLE"] = "platform.user.enable";
|
|
60
60
|
Permission["PLATFORM_USER_DELETE"] = "platform.user.delete";
|
|
61
|
+
// Crear/asignar usuarios platform de TU MISMO nivel (platform_admin → platform_admin).
|
|
62
|
+
// Espejo de tenant.user.create.lateral / retail.user.create.lateral: habilita allowOwnLevel
|
|
63
|
+
// en ScopeValidationService.canAssign para scope PLATFORM. DEC-052.
|
|
64
|
+
Permission["PLATFORM_USER_CREATE_LATERAL"] = "platform.user.create.lateral";
|
|
61
65
|
Permission["PLATFORM_ROLE_CREATE"] = "platform.role.create";
|
|
62
66
|
Permission["PLATFORM_ROLE_LIST"] = "platform.role.list";
|
|
63
67
|
Permission["PLATFORM_ROLE_UPDATE"] = "platform.role.update";
|
|
@@ -332,6 +336,9 @@ exports.PERMISSION_BIT_ORDER = [
|
|
|
332
336
|
// Append-only 2026-06-21: gate de acceso a la app web de Agents (gobernanza). Al FINAL para no
|
|
333
337
|
// correr bits existentes (PERMS_VERSION cambia, pero los índices previos se conservan).
|
|
334
338
|
Permission.AGENTS_APP_ACCESS,
|
|
339
|
+
// Append-only 2026-06-19: lateral platform (platform_super_admin asigna roles scope PLATFORM).
|
|
340
|
+
// Al FINAL para no correr bits existentes (PERMS_VERSION cambia, índices previos se conservan).
|
|
341
|
+
Permission.PLATFORM_USER_CREATE_LATERAL,
|
|
335
342
|
];
|
|
336
343
|
function djb2(input) {
|
|
337
344
|
let h = 5381;
|
|
@@ -7,7 +7,8 @@ import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
|
7
7
|
* (barcodes, cadenas pagables) — opaco al front.
|
|
8
8
|
*/
|
|
9
9
|
export declare class AuthorizeFundingResponse {
|
|
10
|
-
|
|
10
|
+
/** Referencia Passport. Solo presente si status=APPROVED. */
|
|
11
|
+
reference?: string;
|
|
11
12
|
status: BenefitPaymentStatusEnum;
|
|
12
13
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
13
14
|
/** ISO timestamp. */
|
|
@@ -4,7 +4,7 @@ import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
|
4
4
|
export declare class AuthorizeWalletFundingResponse {
|
|
5
5
|
status: BenefitPaymentStatusEnum;
|
|
6
6
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
7
|
-
|
|
7
|
+
reference?: string;
|
|
8
8
|
expiresAt?: string;
|
|
9
9
|
providerData?: FundingProviderReferenceData;
|
|
10
10
|
}
|
|
@@ -18,7 +18,7 @@ __decorate([
|
|
|
18
18
|
(0, class_validator_1.IsString)(),
|
|
19
19
|
(0, class_validator_1.MaxLength)(64),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
], CancelFundingReferenceRequest.prototype, "
|
|
21
|
+
], CancelFundingReferenceRequest.prototype, "reference", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsString)(),
|
|
24
24
|
(0, class_validator_1.MaxLength)(64),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
2
|
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
3
|
export declare class CancelFundingReferenceResponse {
|
|
4
|
-
|
|
4
|
+
reference: string;
|
|
5
5
|
status: BenefitPaymentStatusEnum;
|
|
6
6
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
3
|
-
* `
|
|
3
|
+
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
4
4
|
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
5
5
|
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
6
6
|
* porque vino en la respuesta del authorize).
|
|
@@ -13,7 +13,7 @@ exports.CancelFundingRequest = void 0;
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
/**
|
|
15
15
|
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
16
|
-
* `
|
|
16
|
+
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
17
17
|
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
18
18
|
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
19
19
|
* porque vino en la respuesta del authorize).
|
|
@@ -7,7 +7,7 @@ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum"
|
|
|
7
7
|
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
8
8
|
*/
|
|
9
9
|
export declare class CancelFundingResponse {
|
|
10
|
-
|
|
10
|
+
reference: string;
|
|
11
11
|
status: BenefitPaymentStatusEnum;
|
|
12
12
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
13
13
|
message?: string;
|
|
@@ -15,11 +15,6 @@ const WalletFundingModeEnum_1 = require("../enums/WalletFundingModeEnum");
|
|
|
15
15
|
class CreateFundingReferenceRequest {
|
|
16
16
|
}
|
|
17
17
|
exports.CreateFundingReferenceRequest = CreateFundingReferenceRequest;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, class_validator_1.MaxLength)(64),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], CreateFundingReferenceRequest.prototype, "fundingId", void 0);
|
|
23
18
|
__decorate([
|
|
24
19
|
(0, class_validator_1.IsString)(),
|
|
25
20
|
(0, class_validator_1.MaxLength)(64),
|
|
@@ -2,7 +2,12 @@ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPayme
|
|
|
2
2
|
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
3
|
import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
4
4
|
export declare class CreateFundingReferenceResponse {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Referencia única generada por Equality/Passport (PK de
|
|
7
|
+
* EqualityFundingReference_GT). Identificador estable a lo largo del ciclo
|
|
8
|
+
* de vida — la app la usa para list/cancel.
|
|
9
|
+
*/
|
|
10
|
+
reference: string;
|
|
6
11
|
status: BenefitPaymentStatusEnum;
|
|
7
12
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
8
13
|
expiresAt?: string;
|
|
@@ -3,6 +3,11 @@ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum"
|
|
|
3
3
|
export declare class CreditWalletFundingResponse {
|
|
4
4
|
status: BenefitPaymentStatusEnum;
|
|
5
5
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
6
|
+
/**
|
|
7
|
+
* Folio canónico del processor. El connector lo devuelve a Equality
|
|
8
|
+
* como `noAuthorization` (campo Alfanumérico según doc Passport).
|
|
9
|
+
* Antes había un `noAuthorization` separado generado por el connector;
|
|
10
|
+
* eliminado por simplicidad y para auto-idempotencia.
|
|
11
|
+
*/
|
|
6
12
|
transactionNumber?: string;
|
|
7
|
-
noAuthorization?: string;
|
|
8
13
|
}
|
|
@@ -2,7 +2,8 @@ import { WalletFundingReferenceStatusEnum } from "../enums/WalletFundingReferenc
|
|
|
2
2
|
import { WalletFundingModeEnum } from "../enums/WalletFundingModeEnum";
|
|
3
3
|
import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
4
4
|
export declare class WalletFundingReferenceListItem {
|
|
5
|
-
|
|
5
|
+
/** Referencia Passport (PK de EqualityFundingReference_GT). */
|
|
6
|
+
reference: string;
|
|
6
7
|
mode: WalletFundingModeEnum;
|
|
7
8
|
amount?: number;
|
|
8
9
|
currencyCode: string;
|
package/package.json
CHANGED
|
@@ -53,6 +53,10 @@ export enum Permission {
|
|
|
53
53
|
PLATFORM_USER_DISABLE = 'platform.user.disable',
|
|
54
54
|
PLATFORM_USER_ENABLE = 'platform.user.enable',
|
|
55
55
|
PLATFORM_USER_DELETE = 'platform.user.delete',
|
|
56
|
+
// Crear/asignar usuarios platform de TU MISMO nivel (platform_admin → platform_admin).
|
|
57
|
+
// Espejo de tenant.user.create.lateral / retail.user.create.lateral: habilita allowOwnLevel
|
|
58
|
+
// en ScopeValidationService.canAssign para scope PLATFORM. DEC-052.
|
|
59
|
+
PLATFORM_USER_CREATE_LATERAL = 'platform.user.create.lateral',
|
|
56
60
|
PLATFORM_ROLE_CREATE = 'platform.role.create',
|
|
57
61
|
PLATFORM_ROLE_LIST = 'platform.role.list',
|
|
58
62
|
PLATFORM_ROLE_UPDATE = 'platform.role.update',
|
|
@@ -334,6 +338,9 @@ export const PERMISSION_BIT_ORDER: readonly Permission[] = [
|
|
|
334
338
|
// Append-only 2026-06-21: gate de acceso a la app web de Agents (gobernanza). Al FINAL para no
|
|
335
339
|
// correr bits existentes (PERMS_VERSION cambia, pero los índices previos se conservan).
|
|
336
340
|
Permission.AGENTS_APP_ACCESS,
|
|
341
|
+
// Append-only 2026-06-19: lateral platform (platform_super_admin asigna roles scope PLATFORM).
|
|
342
|
+
// Al FINAL para no correr bits existentes (PERMS_VERSION cambia, índices previos se conservan).
|
|
343
|
+
Permission.PLATFORM_USER_CREATE_LATERAL,
|
|
337
344
|
] as const;
|
|
338
345
|
|
|
339
346
|
function djb2(input: string): number {
|
|
@@ -8,7 +8,8 @@ import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
|
8
8
|
* (barcodes, cadenas pagables) — opaco al front.
|
|
9
9
|
*/
|
|
10
10
|
export class AuthorizeFundingResponse {
|
|
11
|
-
|
|
11
|
+
/** Referencia Passport. Solo presente si status=APPROVED. */
|
|
12
|
+
reference?: string;
|
|
12
13
|
status!: BenefitPaymentStatusEnum;
|
|
13
14
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
14
15
|
/** ISO timestamp. */
|
|
@@ -5,7 +5,7 @@ import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
|
5
5
|
export class AuthorizeWalletFundingResponse {
|
|
6
6
|
status!: BenefitPaymentStatusEnum;
|
|
7
7
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
8
|
-
|
|
8
|
+
reference?: string;
|
|
9
9
|
expiresAt?: string;
|
|
10
10
|
providerData?: FundingProviderReferenceData;
|
|
11
11
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IsString, MaxLength } from "class-validator";
|
|
2
2
|
|
|
3
3
|
export class CancelFundingReferenceRequest {
|
|
4
|
-
|
|
4
|
+
/** Referencia Passport (PK de EqualityFundingReference_GT). */
|
|
5
|
+
@IsString() @MaxLength(64) reference!: string;
|
|
5
6
|
@IsString() @MaxLength(64) directoryId!: string;
|
|
6
7
|
@IsString() @MaxLength(64) idempotencyKey!: string;
|
|
7
8
|
}
|
|
@@ -2,7 +2,7 @@ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPayme
|
|
|
2
2
|
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
3
|
|
|
4
4
|
export class CancelFundingReferenceResponse {
|
|
5
|
-
|
|
5
|
+
reference!: string;
|
|
6
6
|
status!: BenefitPaymentStatusEnum;
|
|
7
7
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import { IsString, MaxLength } from "class-validator";
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
5
|
-
* `
|
|
5
|
+
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
6
6
|
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
7
7
|
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
8
8
|
* porque vino en la respuesta del authorize).
|
|
@@ -8,7 +8,7 @@ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum"
|
|
|
8
8
|
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
9
9
|
*/
|
|
10
10
|
export class CancelFundingResponse {
|
|
11
|
-
|
|
11
|
+
reference!: string;
|
|
12
12
|
status!: BenefitPaymentStatusEnum;
|
|
13
13
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
14
14
|
message?: string;
|
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
import { WalletFundingModeEnum } from "../enums/WalletFundingModeEnum";
|
|
6
6
|
|
|
7
7
|
export class CreateFundingReferenceRequest {
|
|
8
|
-
@IsString() @MaxLength(64) fundingId!: string;
|
|
9
8
|
@IsString() @MaxLength(64) directoryId!: string;
|
|
10
9
|
@IsString() @MaxLength(64) walletAccountId!: string;
|
|
11
10
|
@IsString() @MaxLength(128) name!: string;
|
|
@@ -3,7 +3,12 @@ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum"
|
|
|
3
3
|
import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
4
4
|
|
|
5
5
|
export class CreateFundingReferenceResponse {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Referencia única generada por Equality/Passport (PK de
|
|
8
|
+
* EqualityFundingReference_GT). Identificador estable a lo largo del ciclo
|
|
9
|
+
* de vida — la app la usa para list/cancel.
|
|
10
|
+
*/
|
|
11
|
+
reference!: string;
|
|
7
12
|
status!: BenefitPaymentStatusEnum;
|
|
8
13
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
9
14
|
expiresAt?: string;
|
|
@@ -4,6 +4,11 @@ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum"
|
|
|
4
4
|
export class CreditWalletFundingResponse {
|
|
5
5
|
status!: BenefitPaymentStatusEnum;
|
|
6
6
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
7
|
+
/**
|
|
8
|
+
* Folio canónico del processor. El connector lo devuelve a Equality
|
|
9
|
+
* como `noAuthorization` (campo Alfanumérico según doc Passport).
|
|
10
|
+
* Antes había un `noAuthorization` separado generado por el connector;
|
|
11
|
+
* eliminado por simplicidad y para auto-idempotencia.
|
|
12
|
+
*/
|
|
7
13
|
transactionNumber?: string;
|
|
8
|
-
noAuthorization?: string;
|
|
9
14
|
}
|
|
@@ -3,7 +3,8 @@ import { WalletFundingModeEnum } from "../enums/WalletFundingModeEnum";
|
|
|
3
3
|
import { FundingProviderReferenceData } from "./FundingProviderReferenceData";
|
|
4
4
|
|
|
5
5
|
export class WalletFundingReferenceListItem {
|
|
6
|
-
|
|
6
|
+
/** Referencia Passport (PK de EqualityFundingReference_GT). */
|
|
7
|
+
reference!: string;
|
|
7
8
|
mode!: WalletFundingModeEnum;
|
|
8
9
|
amount?: number;
|
|
9
10
|
currencyCode!: string;
|