@fiado/type-kit 3.113.0 → 3.114.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.
|
@@ -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`] = `643213674`;
|
|
4
4
|
|
|
5
5
|
exports[`PERMISSION_BIT_ORDER append-only: snapshot del ORDEN COMPLETO (rompe ante cualquier reorden/inserción) 1`] = `
|
|
6
6
|
[
|
|
@@ -124,5 +124,6 @@ exports[`PERMISSION_BIT_ORDER append-only: snapshot del ORDEN COMPLETO (rompe an
|
|
|
124
124
|
"agents.app.access",
|
|
125
125
|
"platform.user.create.lateral",
|
|
126
126
|
"platform.application.manage",
|
|
127
|
+
"tenant.level.manage",
|
|
127
128
|
]
|
|
128
129
|
`;
|
|
@@ -77,6 +77,7 @@ export declare enum Permission {
|
|
|
77
77
|
TENANT_SECURITY_POLICY_MANAGE = "tenant.security.policy.manage",
|
|
78
78
|
TENANT_BRANDING_MANAGE = "tenant.branding.manage",
|
|
79
79
|
TENANT_AUDIT_VIEW = "tenant.audit.view",
|
|
80
|
+
TENANT_LEVEL_MANAGE = "tenant.level.manage",
|
|
80
81
|
RETAIL_USER_CREATE = "retail.user.create",
|
|
81
82
|
RETAIL_USER_CREATE_LATERAL = "retail.user.create.lateral",
|
|
82
83
|
RETAIL_USER_READ = "retail.user.read",
|
|
@@ -101,6 +101,8 @@ var Permission;
|
|
|
101
101
|
Permission["TENANT_SECURITY_POLICY_MANAGE"] = "tenant.security.policy.manage";
|
|
102
102
|
Permission["TENANT_BRANDING_MANAGE"] = "tenant.branding.manage";
|
|
103
103
|
Permission["TENANT_AUDIT_VIEW"] = "tenant.audit.view";
|
|
104
|
+
// DEC-RBAC-038: gestión de scope-entities de nivel genérico — crear/editar/borrar entidades del nivel inferior; scope-bound.
|
|
105
|
+
Permission["TENANT_LEVEL_MANAGE"] = "tenant.level.manage";
|
|
104
106
|
// ====================================================
|
|
105
107
|
// RETAIL — catálogo + inventario + ventas
|
|
106
108
|
// ====================================================
|
|
@@ -344,6 +346,9 @@ exports.PERMISSION_BIT_ORDER = [
|
|
|
344
346
|
// Append-only 2026-06-24 (DEC-RBAC-036): gate dedicada de gestión de aplicaciones (plantillas).
|
|
345
347
|
// Al FINAL para no correr bits existentes (PERMS_VERSION cambia, índices previos se conservan).
|
|
346
348
|
Permission.PLATFORM_APPLICATION_MANAGE,
|
|
349
|
+
// Append-only 2026-06-24 (DEC-RBAC-038): gestión de scope-entities de nivel genérico (scope-bound).
|
|
350
|
+
// Al FINAL para no correr bits existentes (PERMS_VERSION cambia, índices previos se conservan).
|
|
351
|
+
Permission.TENANT_LEVEL_MANAGE,
|
|
347
352
|
];
|
|
348
353
|
function djb2(input) {
|
|
349
354
|
let h = 5381;
|
package/package.json
CHANGED
|
@@ -97,6 +97,8 @@ export enum Permission {
|
|
|
97
97
|
TENANT_SECURITY_POLICY_MANAGE = 'tenant.security.policy.manage',
|
|
98
98
|
TENANT_BRANDING_MANAGE = 'tenant.branding.manage',
|
|
99
99
|
TENANT_AUDIT_VIEW = 'tenant.audit.view',
|
|
100
|
+
// DEC-RBAC-038: gestión de scope-entities de nivel genérico — crear/editar/borrar entidades del nivel inferior; scope-bound.
|
|
101
|
+
TENANT_LEVEL_MANAGE = 'tenant.level.manage',
|
|
100
102
|
|
|
101
103
|
// ====================================================
|
|
102
104
|
// RETAIL — catálogo + inventario + ventas
|
|
@@ -346,6 +348,9 @@ export const PERMISSION_BIT_ORDER: readonly Permission[] = [
|
|
|
346
348
|
// Append-only 2026-06-24 (DEC-RBAC-036): gate dedicada de gestión de aplicaciones (plantillas).
|
|
347
349
|
// Al FINAL para no correr bits existentes (PERMS_VERSION cambia, índices previos se conservan).
|
|
348
350
|
Permission.PLATFORM_APPLICATION_MANAGE,
|
|
351
|
+
// Append-only 2026-06-24 (DEC-RBAC-038): gestión de scope-entities de nivel genérico (scope-bound).
|
|
352
|
+
// Al FINAL para no correr bits existentes (PERMS_VERSION cambia, índices previos se conservan).
|
|
353
|
+
Permission.TENANT_LEVEL_MANAGE,
|
|
349
354
|
] as const;
|
|
350
355
|
|
|
351
356
|
function djb2(input: string): number {
|