evo360-types 1.3.162 → 1.3.164

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/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- // @evo360/types/index.ts
2
1
  export * from "./types/shared";
3
2
  export * from "./types/firebase/pubsub-sync";
4
3
  export * from "./types/evo-core";
@@ -14,11 +13,9 @@ export * from "./types/evo-med/dic";
14
13
  export * from "./types/evo-med/insurance";
15
14
  export * from "./types/evo-med/people";
16
15
  export * from "./types/evo-med/procedure";
17
- export * from "./types/evo-task";
18
16
  export * from "./types/evo-tags";
17
+ export * from "./types/evo-task";
19
18
  export * from "./types/evo-survey";
20
-
21
- // zod schemas
22
19
  export * from "./apps/shared/zod-schemas";
23
20
  export * from "./apps/evo-core/zod-schemas";
24
21
  export * from "./apps/evo-tenant/zod-schemas";
@@ -14,15 +14,31 @@ export type CoreRbacPermissions = (typeof CoreRbacPermissions)[keyof typeof Core
14
14
  * - 'deny': does not grant (can be overridden by another role with 'allow')
15
15
  * - 'forbid': explicitly denies and overrides any 'allow'
16
16
  */
17
- export type RbacPermValue = "allow" | "deny" | "forbid";
17
+ export declare const RbacPermValueEnum: {
18
+ readonly Allow: "allow";
19
+ readonly Deny: "deny";
20
+ readonly Forbid: "forbid";
21
+ };
22
+ export type RbacPermValue = (typeof RbacPermValueEnum)[keyof typeof RbacPermValueEnum];
18
23
  /**
19
24
  * Membership status for a user in a tenant.
20
25
  */
21
- export type TenantUserStatus = "active" | "invited" | "disabled" | "removed";
26
+ export declare const TenantUserStatusEnum: {
27
+ readonly Active: "active";
28
+ readonly Invited: "invited";
29
+ readonly Disabled: "disabled";
30
+ readonly Removed: "removed";
31
+ };
32
+ export type TenantUserStatus = (typeof TenantUserStatusEnum)[keyof typeof TenantUserStatusEnum];
22
33
  /**
23
34
  * Status for user tenant index (simplified, no 'removed').
24
35
  */
25
- export type UserTenantIndexStatus = "active" | "invited" | "disabled";
36
+ export declare const UserTenantIndexStatusEnum: {
37
+ readonly Active: "active";
38
+ readonly Invited: "invited";
39
+ readonly Disabled: "disabled";
40
+ };
41
+ export type UserTenantIndexStatus = (typeof UserTenantIndexStatusEnum)[keyof typeof UserTenantIndexStatusEnum];
26
42
  /**
27
43
  * Membership document representing a user's access to a tenant.
28
44
  * This is the PRIMARY authorization document for the system.
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.CoreRbacPermissions = void 0;
17
+ exports.UserTenantIndexStatusEnum = exports.TenantUserStatusEnum = exports.RbacPermValueEnum = exports.CoreRbacPermissions = void 0;
18
18
  __exportStar(require("./fb_collections"), exports);
19
19
  // Permissões para o core rbac
20
20
  exports.CoreRbacPermissions = {
@@ -24,3 +24,32 @@ exports.CoreRbacPermissions = {
24
24
  Update: "core_rbac_write",
25
25
  Delete: "core_rbac_write",
26
26
  };
27
+ // ----- RBAC Types
28
+ /**
29
+ * Tri-state permission value for role definitions.
30
+ * - 'allow': grants the permission
31
+ * - 'deny': does not grant (can be overridden by another role with 'allow')
32
+ * - 'forbid': explicitly denies and overrides any 'allow'
33
+ */
34
+ exports.RbacPermValueEnum = {
35
+ Allow: "allow",
36
+ Deny: "deny",
37
+ Forbid: "forbid",
38
+ };
39
+ /**
40
+ * Membership status for a user in a tenant.
41
+ */
42
+ exports.TenantUserStatusEnum = {
43
+ Active: "active",
44
+ Invited: "invited",
45
+ Disabled: "disabled",
46
+ Removed: "removed",
47
+ };
48
+ /**
49
+ * Status for user tenant index (simplified, no 'removed').
50
+ */
51
+ exports.UserTenantIndexStatusEnum = {
52
+ Active: "active",
53
+ Invited: "invited",
54
+ Disabled: "disabled",
55
+ };
@@ -21,17 +21,36 @@ export type CoreRbacPermissions =
21
21
  * - 'deny': does not grant (can be overridden by another role with 'allow')
22
22
  * - 'forbid': explicitly denies and overrides any 'allow'
23
23
  */
24
- export type RbacPermValue = "allow" | "deny" | "forbid";
24
+ export const RbacPermValueEnum = {
25
+ Allow: "allow",
26
+ Deny: "deny",
27
+ Forbid: "forbid",
28
+ } as const;
29
+ export type RbacPermValue =
30
+ (typeof RbacPermValueEnum)[keyof typeof RbacPermValueEnum];
25
31
 
26
32
  /**
27
33
  * Membership status for a user in a tenant.
28
34
  */
29
- export type TenantUserStatus = "active" | "invited" | "disabled" | "removed";
35
+ export const TenantUserStatusEnum = {
36
+ Active: "active",
37
+ Invited: "invited",
38
+ Disabled: "disabled",
39
+ Removed: "removed",
40
+ } as const;
41
+ export type TenantUserStatus =
42
+ (typeof TenantUserStatusEnum)[keyof typeof TenantUserStatusEnum];
30
43
 
31
44
  /**
32
45
  * Status for user tenant index (simplified, no 'removed').
33
46
  */
34
- export type UserTenantIndexStatus = "active" | "invited" | "disabled";
47
+ export const UserTenantIndexStatusEnum = {
48
+ Active: "active",
49
+ Invited: "invited",
50
+ Disabled: "disabled",
51
+ } as const;
52
+ export type UserTenantIndexStatus =
53
+ (typeof UserTenantIndexStatusEnum)[keyof typeof UserTenantIndexStatusEnum];
35
54
 
36
55
  // ----- Tenant User Membership (AUTORIZAÇÃO PRINCIPAL)
37
56
  // Path: /tenants/{tenant}/users/{userId}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.162",
3
+ "version": "1.3.164",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",