evo360-types 1.3.167 → 1.3.168
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,13 +1,21 @@
|
|
|
1
1
|
export * from "./fb_collections";
|
|
2
2
|
import type { FirestoreDocumentReference, IFireDoc } from "../shared";
|
|
3
|
-
export declare const
|
|
4
|
-
readonly List: "
|
|
5
|
-
readonly Get: "
|
|
6
|
-
readonly Create: "
|
|
7
|
-
readonly Update: "
|
|
8
|
-
readonly Delete: "
|
|
3
|
+
export declare const CoreTenantsPermissions: {
|
|
4
|
+
readonly List: "core_tenants_read";
|
|
5
|
+
readonly Get: "core_tenants_read";
|
|
6
|
+
readonly Create: "core_tenants_write";
|
|
7
|
+
readonly Update: "core_tenants_write";
|
|
8
|
+
readonly Delete: "core_tenants_write";
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
10
|
+
export type CoreTenantsPermissions = (typeof CoreTenantsPermissions)[keyof typeof CoreTenantsPermissions];
|
|
11
|
+
export declare const CoreMyTenantsPermissions: {
|
|
12
|
+
readonly List: "core_my_tenants_read";
|
|
13
|
+
readonly Get: "core_my_tenants_read";
|
|
14
|
+
readonly Create: "core_my_tenants_write";
|
|
15
|
+
readonly Update: "core_my_tenants_write";
|
|
16
|
+
readonly Delete: "core_my_tenants_write";
|
|
17
|
+
};
|
|
18
|
+
export type CoreMyTenantsPermissions = (typeof CoreMyTenantsPermissions)[keyof typeof CoreMyTenantsPermissions];
|
|
11
19
|
export type TenantAction = "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT";
|
|
12
20
|
export declare enum ITenantAction {
|
|
13
21
|
Create_tenant = "CREATE_TENANT",
|
|
@@ -14,15 +14,23 @@ 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.ITenantStatus = exports.ITenantLanguage = exports.ITenantAction = exports.
|
|
17
|
+
exports.ITenantStatus = exports.ITenantLanguage = exports.ITenantAction = exports.CoreMyTenantsPermissions = exports.CoreTenantsPermissions = void 0;
|
|
18
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
19
|
// Permissões para o tenant
|
|
20
|
-
exports.
|
|
21
|
-
List: "
|
|
22
|
-
Get: "
|
|
23
|
-
Create: "
|
|
24
|
-
Update: "
|
|
25
|
-
Delete: "
|
|
20
|
+
exports.CoreTenantsPermissions = {
|
|
21
|
+
List: "core_tenants_read",
|
|
22
|
+
Get: "core_tenants_read",
|
|
23
|
+
Create: "core_tenants_write",
|
|
24
|
+
Update: "core_tenants_write",
|
|
25
|
+
Delete: "core_tenants_write",
|
|
26
|
+
};
|
|
27
|
+
// Permissões para listar os tenants do usuário
|
|
28
|
+
exports.CoreMyTenantsPermissions = {
|
|
29
|
+
List: "core_my_tenants_read",
|
|
30
|
+
Get: "core_my_tenants_read",
|
|
31
|
+
Create: "core_my_tenants_write",
|
|
32
|
+
Update: "core_my_tenants_write",
|
|
33
|
+
Delete: "core_my_tenants_write",
|
|
26
34
|
};
|
|
27
35
|
var ITenantAction;
|
|
28
36
|
(function (ITenantAction) {
|
|
@@ -2,15 +2,26 @@ export * from "./fb_collections";
|
|
|
2
2
|
import type { FirestoreDocumentReference, IFireDoc } from "../shared";
|
|
3
3
|
|
|
4
4
|
// Permissões para o tenant
|
|
5
|
-
export const
|
|
6
|
-
List: "
|
|
7
|
-
Get: "
|
|
8
|
-
Create: "
|
|
9
|
-
Update: "
|
|
10
|
-
Delete: "
|
|
5
|
+
export const CoreTenantsPermissions = {
|
|
6
|
+
List: "core_tenants_read",
|
|
7
|
+
Get: "core_tenants_read",
|
|
8
|
+
Create: "core_tenants_write",
|
|
9
|
+
Update: "core_tenants_write",
|
|
10
|
+
Delete: "core_tenants_write",
|
|
11
11
|
} as const;
|
|
12
|
-
export type
|
|
13
|
-
(typeof
|
|
12
|
+
export type CoreTenantsPermissions =
|
|
13
|
+
(typeof CoreTenantsPermissions)[keyof typeof CoreTenantsPermissions];
|
|
14
|
+
|
|
15
|
+
// Permissões para listar os tenants do usuário
|
|
16
|
+
export const CoreMyTenantsPermissions = {
|
|
17
|
+
List: "core_my_tenants_read",
|
|
18
|
+
Get: "core_my_tenants_read",
|
|
19
|
+
Create: "core_my_tenants_write",
|
|
20
|
+
Update: "core_my_tenants_write",
|
|
21
|
+
Delete: "core_my_tenants_write",
|
|
22
|
+
} as const;
|
|
23
|
+
export type CoreMyTenantsPermissions =
|
|
24
|
+
(typeof CoreMyTenantsPermissions)[keyof typeof CoreMyTenantsPermissions];
|
|
14
25
|
|
|
15
26
|
// ----- TenantTypes
|
|
16
27
|
// Enum for Tenant Action - used in Activities tracking
|