evo360-types 1.3.160 → 1.3.162
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/types/evo-core/index.d.ts +8 -0
- package/dist/types/evo-core/index.js +9 -0
- package/dist/types/evo-core/index.ts +12 -0
- package/dist/types/evo-core/rbac/index.d.ts +10 -2
- package/dist/types/evo-core/rbac/index.js +9 -0
- package/dist/types/evo-core/rbac/index.ts +18 -6
- package/package.json +1 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { FirestoreDocumentReference, IFireDoc } from "../shared";
|
|
2
2
|
export * from "./fb_collections";
|
|
3
|
+
export declare const CoreUsersPermissions: {
|
|
4
|
+
readonly List: "core_users_read";
|
|
5
|
+
readonly Get: "core_users_read";
|
|
6
|
+
readonly Create: "core_users_write";
|
|
7
|
+
readonly Update: "core_users_write";
|
|
8
|
+
readonly Delete: "core_users_write";
|
|
9
|
+
};
|
|
10
|
+
export type CoreUsersPermissions = (typeof CoreUsersPermissions)[keyof typeof CoreUsersPermissions];
|
|
3
11
|
export interface IUserSpecialRoles {
|
|
4
12
|
is_admin: boolean;
|
|
5
13
|
is_sys_admin: boolean;
|
|
@@ -14,6 +14,15 @@ 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.CoreUsersPermissions = void 0;
|
|
17
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
// Permissões para o core
|
|
20
|
+
exports.CoreUsersPermissions = {
|
|
21
|
+
List: "core_users_read",
|
|
22
|
+
Get: "core_users_read",
|
|
23
|
+
Create: "core_users_write",
|
|
24
|
+
Update: "core_users_write",
|
|
25
|
+
Delete: "core_users_write",
|
|
26
|
+
};
|
|
18
27
|
// RBAC Types
|
|
19
28
|
__exportStar(require("./rbac"), exports);
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import type { FirestoreDocumentReference, IFireDoc } from "../shared";
|
|
2
2
|
export * from "./fb_collections";
|
|
3
3
|
|
|
4
|
+
// Permissões para o core
|
|
5
|
+
export const CoreUsersPermissions = {
|
|
6
|
+
List: "core_users_read",
|
|
7
|
+
Get: "core_users_read",
|
|
8
|
+
Create: "core_users_write",
|
|
9
|
+
Update: "core_users_write",
|
|
10
|
+
Delete: "core_users_write",
|
|
11
|
+
} as const;
|
|
12
|
+
|
|
13
|
+
export type CoreUsersPermissions =
|
|
14
|
+
(typeof CoreUsersPermissions)[keyof typeof CoreUsersPermissions];
|
|
15
|
+
|
|
4
16
|
//UserTypes
|
|
5
17
|
export interface IUserSpecialRoles {
|
|
6
18
|
is_admin: boolean;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import type { IFireDoc } from "../../shared";
|
|
3
|
+
export declare const CoreRbacPermissions: {
|
|
4
|
+
readonly List: "core_rbac_read";
|
|
5
|
+
readonly Get: "core_rbac_read";
|
|
6
|
+
readonly Create: "core_rbac_write";
|
|
7
|
+
readonly Update: "core_rbac_write";
|
|
8
|
+
readonly Delete: "core_rbac_write";
|
|
9
|
+
};
|
|
10
|
+
export type CoreRbacPermissions = (typeof CoreRbacPermissions)[keyof typeof CoreRbacPermissions];
|
|
3
11
|
/**
|
|
4
12
|
* Tri-state permission value for role definitions.
|
|
5
13
|
* - 'allow': grants the permission
|
|
@@ -19,7 +27,7 @@ export type UserTenantIndexStatus = "active" | "invited" | "disabled";
|
|
|
19
27
|
* Membership document representing a user's access to a tenant.
|
|
20
28
|
* This is the PRIMARY authorization document for the system.
|
|
21
29
|
*
|
|
22
|
-
* Path: /tenants/{
|
|
30
|
+
* Path: /tenants/{tenant}/users/{userId}
|
|
23
31
|
*/
|
|
24
32
|
export interface ITenantUser extends IFireDoc {
|
|
25
33
|
status: TenantUserStatus;
|
|
@@ -50,7 +58,7 @@ export interface ITenantUser extends IFireDoc {
|
|
|
50
58
|
* Inverted index for listing tenants accessible by a user.
|
|
51
59
|
* Used exclusively for performant listing without expensive queries.
|
|
52
60
|
*
|
|
53
|
-
* Path: /users/{userId}/tenants/{
|
|
61
|
+
* Path: /users/{userId}/tenants/{tenant}
|
|
54
62
|
*/
|
|
55
63
|
export interface IUserTenantIndex extends IFireDoc {
|
|
56
64
|
status: UserTenantIndexStatus;
|
|
@@ -14,4 +14,13 @@ 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
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
|
+
// Permissões para o core rbac
|
|
20
|
+
exports.CoreRbacPermissions = {
|
|
21
|
+
List: "core_rbac_read",
|
|
22
|
+
Get: "core_rbac_read",
|
|
23
|
+
Create: "core_rbac_write",
|
|
24
|
+
Update: "core_rbac_write",
|
|
25
|
+
Delete: "core_rbac_write",
|
|
26
|
+
};
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import type { IFireDoc } from "../../shared";
|
|
3
3
|
|
|
4
|
+
// Permissões para o core rbac
|
|
5
|
+
export const CoreRbacPermissions = {
|
|
6
|
+
List: "core_rbac_read",
|
|
7
|
+
Get: "core_rbac_read",
|
|
8
|
+
Create: "core_rbac_write",
|
|
9
|
+
Update: "core_rbac_write",
|
|
10
|
+
Delete: "core_rbac_write",
|
|
11
|
+
} as const;
|
|
12
|
+
|
|
13
|
+
export type CoreRbacPermissions =
|
|
14
|
+
(typeof CoreRbacPermissions)[keyof typeof CoreRbacPermissions];
|
|
15
|
+
|
|
4
16
|
// ----- RBAC Types
|
|
5
17
|
|
|
6
18
|
/**
|
|
@@ -22,17 +34,17 @@ export type TenantUserStatus = "active" | "invited" | "disabled" | "removed";
|
|
|
22
34
|
export type UserTenantIndexStatus = "active" | "invited" | "disabled";
|
|
23
35
|
|
|
24
36
|
// ----- Tenant User Membership (AUTORIZAÇÃO PRINCIPAL)
|
|
25
|
-
// Path: /tenants/{
|
|
37
|
+
// Path: /tenants/{tenant}/users/{userId}
|
|
26
38
|
|
|
27
39
|
/**
|
|
28
40
|
* Membership document representing a user's access to a tenant.
|
|
29
41
|
* This is the PRIMARY authorization document for the system.
|
|
30
42
|
*
|
|
31
|
-
* Path: /tenants/{
|
|
43
|
+
* Path: /tenants/{tenant}/users/{userId}
|
|
32
44
|
*/
|
|
33
45
|
export interface ITenantUser extends IFireDoc {
|
|
34
46
|
status: TenantUserStatus;
|
|
35
|
-
// tenant field from IFireDoc represents the
|
|
47
|
+
// tenant field from IFireDoc represents the tenant
|
|
36
48
|
|
|
37
49
|
/**
|
|
38
50
|
* Array of role IDs assigned to the user in this tenant.
|
|
@@ -60,17 +72,17 @@ export interface ITenantUser extends IFireDoc {
|
|
|
60
72
|
}
|
|
61
73
|
|
|
62
74
|
// ----- User Tenant Index (ÍNDICE INVERTIDO)
|
|
63
|
-
// Path: /users/{userId}/tenants/{
|
|
75
|
+
// Path: /users/{userId}/tenants/{tenant}
|
|
64
76
|
|
|
65
77
|
/**
|
|
66
78
|
* Inverted index for listing tenants accessible by a user.
|
|
67
79
|
* Used exclusively for performant listing without expensive queries.
|
|
68
80
|
*
|
|
69
|
-
* Path: /users/{userId}/tenants/{
|
|
81
|
+
* Path: /users/{userId}/tenants/{tenant}
|
|
70
82
|
*/
|
|
71
83
|
export interface IUserTenantIndex extends IFireDoc {
|
|
72
84
|
status: UserTenantIndexStatus;
|
|
73
|
-
// tenant field from IFireDoc represents the
|
|
85
|
+
// tenant field from IFireDoc represents the tenant
|
|
74
86
|
|
|
75
87
|
/**
|
|
76
88
|
* Tenant name for display purposes.
|