evo360-types 1.3.164 → 1.3.166
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/apps/evo-core/zod-schemas.d.ts +3 -0
- package/dist/apps/evo-core/zod-schemas.js +1 -0
- package/dist/apps/evo-core/zod-schemas.ts +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/types/evo-core/rbac/index.d.ts +1 -0
- package/dist/types/evo-core/rbac/index.ts +1 -0
- package/dist/types/evo-crm/dic/index.d.ts +8 -0
- package/dist/types/evo-crm/dic/index.js +9 -1
- package/dist/types/evo-crm/dic/index.ts +12 -0
- package/package.json +1 -1
|
@@ -37,6 +37,7 @@ export declare const zTenantUserSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
37
37
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
38
38
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
39
39
|
}, {
|
|
40
|
+
display_name: z.ZodString;
|
|
40
41
|
status: z.ZodEnum<["active", "invited", "disabled", "removed"]>;
|
|
41
42
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
42
43
|
perms: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
@@ -49,6 +50,7 @@ export declare const zTenantUserSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
49
50
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
50
51
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
51
52
|
}, {
|
|
53
|
+
display_name: z.ZodString;
|
|
52
54
|
status: z.ZodEnum<["active", "invited", "disabled", "removed"]>;
|
|
53
55
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
54
56
|
perms: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
@@ -61,6 +63,7 @@ export declare const zTenantUserSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
61
63
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
62
64
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
63
65
|
}, {
|
|
66
|
+
display_name: z.ZodString;
|
|
64
67
|
status: z.ZodEnum<["active", "invited", "disabled", "removed"]>;
|
|
65
68
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
66
69
|
perms: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
@@ -36,6 +36,7 @@ exports.zUserTenantIndexStatusSchema = zod_1.z.enum([
|
|
|
36
36
|
*/
|
|
37
37
|
exports.zTenantUserSchema = zod_schemas_1.zFireDocSchema
|
|
38
38
|
.extend({
|
|
39
|
+
display_name: zod_1.z.string(),
|
|
39
40
|
status: exports.zTenantUserStatusSchema,
|
|
40
41
|
roles: zod_1.z.array(zod_1.z.string()),
|
|
41
42
|
perms: zod_1.z.record(zod_1.z.boolean()),
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// @evo360/types/index.ts
|
|
1
2
|
export * from "./types/shared";
|
|
2
3
|
export * from "./types/firebase/pubsub-sync";
|
|
3
4
|
export * from "./types/evo-core";
|
|
@@ -13,9 +14,11 @@ export * from "./types/evo-med/dic";
|
|
|
13
14
|
export * from "./types/evo-med/insurance";
|
|
14
15
|
export * from "./types/evo-med/people";
|
|
15
16
|
export * from "./types/evo-med/procedure";
|
|
16
|
-
export * from "./types/evo-tags";
|
|
17
17
|
export * from "./types/evo-task";
|
|
18
|
+
export * from "./types/evo-tags";
|
|
18
19
|
export * from "./types/evo-survey";
|
|
20
|
+
|
|
21
|
+
// zod schemas
|
|
19
22
|
export * from "./apps/shared/zod-schemas";
|
|
20
23
|
export * from "./apps/evo-core/zod-schemas";
|
|
21
24
|
export * from "./apps/evo-tenant/zod-schemas";
|
|
@@ -46,6 +46,7 @@ export type UserTenantIndexStatus = (typeof UserTenantIndexStatusEnum)[keyof typ
|
|
|
46
46
|
* Path: /tenants/{tenant}/users/{userId}
|
|
47
47
|
*/
|
|
48
48
|
export interface ITenantUser extends IFireDoc {
|
|
49
|
+
display_name: string;
|
|
49
50
|
status: TenantUserStatus;
|
|
50
51
|
/**
|
|
51
52
|
* Array of role IDs assigned to the user in this tenant.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export * from "../fb_collections";
|
|
2
2
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
|
|
3
|
+
export declare const EvoCrmDicPermissions: {
|
|
4
|
+
readonly List: "evo_crm_dics_read";
|
|
5
|
+
readonly Get: "evo_crm_dics_read";
|
|
6
|
+
readonly Create: "evo_crm_dics_write";
|
|
7
|
+
readonly Update: "evo_crm_dics_write";
|
|
8
|
+
readonly Delete: "evo_crm_dics_write";
|
|
9
|
+
};
|
|
10
|
+
export type EvoCrmDicPermissions = (typeof EvoCrmDicPermissions)[keyof typeof EvoCrmDicPermissions];
|
|
3
11
|
export type CRMDicAction = "CREATE_DIST_CHANNEL_TYPE" | "DELETE_DIST_CHANNEL_TYPE" | "UPDATE_DIST_CHANNEL_TYPE" | "CREATE_DIST_CHANNEL" | "DELETE_DIST_CHANNEL" | "UPDATE_DIST_CHANNEL" | "CREATE_LEADQUALIFICATION" | "DELETE_LEADQUALIFICATION" | "UPDATE_LEADQUALIFICATION";
|
|
4
12
|
export declare enum ICRMDicAction {
|
|
5
13
|
Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
|
|
@@ -14,8 +14,16 @@ 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.IQualificationFunnelLevel = exports.ICRMDicAction = void 0;
|
|
17
|
+
exports.IQualificationFunnelLevel = exports.ICRMDicAction = exports.EvoCrmDicPermissions = void 0;
|
|
18
18
|
__exportStar(require("../fb_collections"), exports);
|
|
19
|
+
// Permissões para o dicionário
|
|
20
|
+
exports.EvoCrmDicPermissions = {
|
|
21
|
+
List: "evo_crm_dics_read",
|
|
22
|
+
Get: "evo_crm_dics_read",
|
|
23
|
+
Create: "evo_crm_dics_write",
|
|
24
|
+
Update: "evo_crm_dics_write",
|
|
25
|
+
Delete: "evo_crm_dics_write",
|
|
26
|
+
};
|
|
19
27
|
var ICRMDicAction;
|
|
20
28
|
(function (ICRMDicAction) {
|
|
21
29
|
ICRMDicAction["Create_dist_channel_type"] = "CREATE_DIST_CHANNEL_TYPE";
|
|
@@ -2,6 +2,18 @@ export * from "../fb_collections";
|
|
|
2
2
|
|
|
3
3
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
|
|
4
4
|
|
|
5
|
+
// Permissões para o dicionário
|
|
6
|
+
export const EvoCrmDicPermissions = {
|
|
7
|
+
List: "evo_crm_dics_read",
|
|
8
|
+
Get: "evo_crm_dics_read",
|
|
9
|
+
Create: "evo_crm_dics_write",
|
|
10
|
+
Update: "evo_crm_dics_write",
|
|
11
|
+
Delete: "evo_crm_dics_write",
|
|
12
|
+
} as const;
|
|
13
|
+
|
|
14
|
+
export type EvoCrmDicPermissions =
|
|
15
|
+
(typeof EvoCrmDicPermissions)[keyof typeof EvoCrmDicPermissions];
|
|
16
|
+
|
|
5
17
|
// ----- CRMDicTypes
|
|
6
18
|
|
|
7
19
|
// Enum for EvoCRM Dic Action - used in Dictionaries tracking
|