evo360-types 1.3.99 → 1.3.101
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-chat/chatbee/zod-schemas.d.ts +101 -0
- package/dist/apps/evo-chat/chatbee/zod-schemas.js +17 -0
- package/dist/apps/evo-chat/chatbee/zod-schemas.ts +15 -0
- package/dist/apps/evo-hub-ia/channel/zod-schemas.d.ts +21 -0
- package/dist/apps/evo-hub-ia/channel/zod-schemas.js +14 -0
- package/dist/apps/evo-hub-ia/channel/zod-schemas.ts +14 -0
- package/dist/apps/evo-med/people/zod-schemas.d.ts +3 -0
- package/dist/apps/evo-med/people/zod-schemas.js +1 -0
- package/dist/apps/evo-med/people/zod-schemas.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.ts +2 -0
- package/dist/types/evo-chat/chatbee/index.d.ts +11 -0
- package/dist/types/evo-chat/chatbee/index.js +2 -0
- package/dist/types/evo-chat/chatbee/index.ts +13 -0
- package/dist/types/evo-chat/fb_collections.d.ts +1 -0
- package/dist/types/evo-chat/fb_collections.js +3 -1
- package/dist/types/evo-chat/fb_collections.ts +3 -0
- package/dist/types/evo-chat/index.d.ts +1 -0
- package/dist/types/evo-chat/index.js +1 -0
- package/dist/types/evo-chat/index.ts +1 -0
- package/dist/types/evo-hub-ia/channel/index.d.ts +13 -0
- package/dist/types/evo-hub-ia/channel/index.js +8 -0
- package/dist/types/evo-hub-ia/channel/index.ts +17 -0
- package/dist/types/evo-hub-ia/index.d.ts +1 -0
- package/dist/types/evo-hub-ia/index.js +17 -0
- package/dist/types/evo-hub-ia/index.ts +2 -0
- package/dist/types/evo-med/people/index.d.ts +1 -0
- package/dist/types/evo-med/people/index.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const zChatBeeChannelSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
ref: z.ZodAny;
|
|
5
|
+
tenant: z.ZodString;
|
|
6
|
+
model_ver: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
+
}, {
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
channel_id: z.ZodString;
|
|
13
|
+
number: z.ZodString;
|
|
14
|
+
type: z.ZodString;
|
|
15
|
+
channel_uuid: z.ZodString;
|
|
16
|
+
hub_ia: z.ZodObject<{
|
|
17
|
+
default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
|
|
18
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
system_message_prompt: z.ZodString;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
active: boolean;
|
|
24
|
+
default_operation_mode: "reply" | "suggestion";
|
|
25
|
+
enabled_for_new_contacts: boolean;
|
|
26
|
+
auto_reactivate: boolean;
|
|
27
|
+
system_message_prompt: string;
|
|
28
|
+
}, {
|
|
29
|
+
default_operation_mode: "reply" | "suggestion";
|
|
30
|
+
system_message_prompt: string;
|
|
31
|
+
active?: boolean | undefined;
|
|
32
|
+
enabled_for_new_contacts?: boolean | undefined;
|
|
33
|
+
auto_reactivate?: boolean | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
ref: z.ZodAny;
|
|
38
|
+
tenant: z.ZodString;
|
|
39
|
+
model_ver: z.ZodDefault<z.ZodNumber>;
|
|
40
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
41
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
42
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
43
|
+
}, {
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
channel_id: z.ZodString;
|
|
46
|
+
number: z.ZodString;
|
|
47
|
+
type: z.ZodString;
|
|
48
|
+
channel_uuid: z.ZodString;
|
|
49
|
+
hub_ia: z.ZodObject<{
|
|
50
|
+
default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
|
|
51
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
52
|
+
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
53
|
+
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
54
|
+
system_message_prompt: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
active: boolean;
|
|
57
|
+
default_operation_mode: "reply" | "suggestion";
|
|
58
|
+
enabled_for_new_contacts: boolean;
|
|
59
|
+
auto_reactivate: boolean;
|
|
60
|
+
system_message_prompt: string;
|
|
61
|
+
}, {
|
|
62
|
+
default_operation_mode: "reply" | "suggestion";
|
|
63
|
+
system_message_prompt: string;
|
|
64
|
+
active?: boolean | undefined;
|
|
65
|
+
enabled_for_new_contacts?: boolean | undefined;
|
|
66
|
+
auto_reactivate?: boolean | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
ref: z.ZodAny;
|
|
71
|
+
tenant: z.ZodString;
|
|
72
|
+
model_ver: z.ZodDefault<z.ZodNumber>;
|
|
73
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
74
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
75
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
76
|
+
}, {
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
channel_id: z.ZodString;
|
|
79
|
+
number: z.ZodString;
|
|
80
|
+
type: z.ZodString;
|
|
81
|
+
channel_uuid: z.ZodString;
|
|
82
|
+
hub_ia: z.ZodObject<{
|
|
83
|
+
default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
|
|
84
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
85
|
+
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
86
|
+
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
+
system_message_prompt: z.ZodString;
|
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
active: boolean;
|
|
90
|
+
default_operation_mode: "reply" | "suggestion";
|
|
91
|
+
enabled_for_new_contacts: boolean;
|
|
92
|
+
auto_reactivate: boolean;
|
|
93
|
+
system_message_prompt: string;
|
|
94
|
+
}, {
|
|
95
|
+
default_operation_mode: "reply" | "suggestion";
|
|
96
|
+
system_message_prompt: string;
|
|
97
|
+
active?: boolean | undefined;
|
|
98
|
+
enabled_for_new_contacts?: boolean | undefined;
|
|
99
|
+
auto_reactivate?: boolean | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zChatBeeChannelSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
|
+
const zod_schemas_2 = require("../../evo-hub-ia/channel/zod-schemas");
|
|
7
|
+
// ───────── ChatBee Channel ─────────
|
|
8
|
+
exports.zChatBeeChannelSchema = zod_schemas_1.zFireDocSchema
|
|
9
|
+
.extend({
|
|
10
|
+
name: zod_1.z.string(), // Nome do canal
|
|
11
|
+
channel_id: zod_1.z.string(), // ID do canal
|
|
12
|
+
number: zod_1.z.string(), // Número do canal
|
|
13
|
+
type: zod_1.z.string(), // Tipo do canal
|
|
14
|
+
channel_uuid: zod_1.z.string(), // UUID do canal
|
|
15
|
+
hub_ia: zod_schemas_2.zHubIAConfigSchema, // Configurações da HubIA para este canal
|
|
16
|
+
})
|
|
17
|
+
.passthrough();
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { zFireDocSchema } from "../../shared/zod-schemas";
|
|
3
|
+
import { zHubIAConfigSchema } from "../../evo-hub-ia/channel/zod-schemas";
|
|
4
|
+
|
|
5
|
+
// ───────── ChatBee Channel ─────────
|
|
6
|
+
export const zChatBeeChannelSchema = zFireDocSchema
|
|
7
|
+
.extend({
|
|
8
|
+
name: z.string(), // Nome do canal
|
|
9
|
+
channel_id: z.string(), // ID do canal
|
|
10
|
+
number: z.string(), // Número do canal
|
|
11
|
+
type: z.string(), // Tipo do canal
|
|
12
|
+
channel_uuid: z.string(), // UUID do canal
|
|
13
|
+
hub_ia: zHubIAConfigSchema, // Configurações da HubIA para este canal
|
|
14
|
+
})
|
|
15
|
+
.passthrough();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const zHubIAOperationModeSchema: z.ZodEnum<["reply", "suggestion"]>;
|
|
3
|
+
export declare const zHubIAConfigSchema: z.ZodObject<{
|
|
4
|
+
default_operation_mode: z.ZodEnum<["reply", "suggestion"]>;
|
|
5
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
6
|
+
enabled_for_new_contacts: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
auto_reactivate: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
system_message_prompt: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
active: boolean;
|
|
11
|
+
default_operation_mode: "reply" | "suggestion";
|
|
12
|
+
enabled_for_new_contacts: boolean;
|
|
13
|
+
auto_reactivate: boolean;
|
|
14
|
+
system_message_prompt: string;
|
|
15
|
+
}, {
|
|
16
|
+
default_operation_mode: "reply" | "suggestion";
|
|
17
|
+
system_message_prompt: string;
|
|
18
|
+
active?: boolean | undefined;
|
|
19
|
+
enabled_for_new_contacts?: boolean | undefined;
|
|
20
|
+
auto_reactivate?: boolean | undefined;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zHubIAConfigSchema = exports.zHubIAOperationModeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// ───────── HubIA Operation Mode ─────────
|
|
6
|
+
exports.zHubIAOperationModeSchema = zod_1.z.enum(["reply", "suggestion"]);
|
|
7
|
+
// ───────── HubIA Config ─────────
|
|
8
|
+
exports.zHubIAConfigSchema = zod_1.z.object({
|
|
9
|
+
default_operation_mode: exports.zHubIAOperationModeSchema, // Modo de operação padrão
|
|
10
|
+
active: zod_1.z.boolean().default(false), // Indica se a IA está ativa (default: false)
|
|
11
|
+
enabled_for_new_contacts: zod_1.z.boolean().default(false), // Ativado para novos contatos (default: false)
|
|
12
|
+
auto_reactivate: zod_1.z.boolean().default(false), // Reativar automaticamente (default: false)
|
|
13
|
+
system_message_prompt: zod_1.z.string(), // Prompt da mensagem do sistema
|
|
14
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
// ───────── HubIA Operation Mode ─────────
|
|
4
|
+
export const zHubIAOperationModeSchema = z.enum(["reply", "suggestion"]);
|
|
5
|
+
|
|
6
|
+
// ───────── HubIA Config ─────────
|
|
7
|
+
export const zHubIAConfigSchema = z.object({
|
|
8
|
+
default_operation_mode: zHubIAOperationModeSchema, // Modo de operação padrão
|
|
9
|
+
active: z.boolean().default(false), // Indica se a IA está ativa (default: false)
|
|
10
|
+
enabled_for_new_contacts: z.boolean().default(false), // Ativado para novos contatos (default: false)
|
|
11
|
+
auto_reactivate: z.boolean().default(false), // Reativar automaticamente (default: false)
|
|
12
|
+
system_message_prompt: z.string(), // Prompt da mensagem do sistema
|
|
13
|
+
});
|
|
14
|
+
|
|
@@ -669,6 +669,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
669
669
|
}[] | null | undefined;
|
|
670
670
|
notes?: string | undefined;
|
|
671
671
|
}>, "many">>>;
|
|
672
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
672
673
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
673
674
|
name: z.ZodString;
|
|
674
675
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -826,6 +827,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
826
827
|
}[] | null | undefined;
|
|
827
828
|
notes?: string | undefined;
|
|
828
829
|
}>, "many">>>;
|
|
830
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
829
831
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
830
832
|
name: z.ZodString;
|
|
831
833
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -983,6 +985,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
983
985
|
}[] | null | undefined;
|
|
984
986
|
notes?: string | undefined;
|
|
985
987
|
}>, "many">>>;
|
|
988
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
986
989
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
987
990
|
name: z.ZodString;
|
|
988
991
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -96,6 +96,7 @@ exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSche
|
|
|
96
96
|
.array(exports.zPatientChronicConditionSchema)
|
|
97
97
|
.nullable()
|
|
98
98
|
.optional(),
|
|
99
|
+
notes: zod_1.z.string().nullable().optional(),
|
|
99
100
|
tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
|
|
100
101
|
userRef: zod_1.z.any(),
|
|
101
102
|
})
|
|
@@ -113,6 +113,7 @@ export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
|
|
|
113
113
|
.array(zPatientChronicConditionSchema)
|
|
114
114
|
.nullable()
|
|
115
115
|
.optional(),
|
|
116
|
+
notes: z.string().nullable().optional(),
|
|
116
117
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
117
118
|
userRef: z.any(),
|
|
118
119
|
})
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,8 @@ __exportStar(require("./apps/evo-crm/dic/zod-schemas"), exports);
|
|
|
43
43
|
__exportStar(require("./apps/evo-crm/lead/zod-schemas"), exports);
|
|
44
44
|
__exportStar(require("./apps/evo-chat/contact/zod-schemas"), exports);
|
|
45
45
|
__exportStar(require("./apps/evo-chat/message/zod-schemas"), exports);
|
|
46
|
+
__exportStar(require("./apps/evo-chat/chatbee/zod-schemas"), exports);
|
|
47
|
+
__exportStar(require("./apps/evo-hub-ia/channel/zod-schemas"), exports);
|
|
46
48
|
__exportStar(require("./apps/evo-med/calendar/zod-schemas"), exports);
|
|
47
49
|
__exportStar(require("./apps/evo-med/appointment/zod-schemas"), exports);
|
|
48
50
|
__exportStar(require("./apps/evo-med/dic/zod-schemas"), exports);
|
package/dist/index.ts
CHANGED
|
@@ -28,6 +28,8 @@ export * from "./apps/evo-crm/dic/zod-schemas";
|
|
|
28
28
|
export * from "./apps/evo-crm/lead/zod-schemas";
|
|
29
29
|
export * from "./apps/evo-chat/contact/zod-schemas";
|
|
30
30
|
export * from "./apps/evo-chat/message/zod-schemas";
|
|
31
|
+
export * from "./apps/evo-chat/chatbee/zod-schemas";
|
|
32
|
+
export * from "./apps/evo-hub-ia/channel/zod-schemas";
|
|
31
33
|
export * from "./apps/evo-med/calendar/zod-schemas";
|
|
32
34
|
export * from "./apps/evo-med/appointment/zod-schemas";
|
|
33
35
|
export * from "./apps/evo-med/dic/zod-schemas";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IHubIAConfig } from "../../evo-hub-ia/channel";
|
|
2
|
+
import { IFireDoc } from "../../shared";
|
|
3
|
+
export interface IChatBeeChannel extends IFireDoc {
|
|
4
|
+
name: string;
|
|
5
|
+
channel_id: string;
|
|
6
|
+
number: string;
|
|
7
|
+
type: string;
|
|
8
|
+
channel_uuid: string;
|
|
9
|
+
hub_ia: IHubIAConfig;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IHubIAConfig } from "../../evo-hub-ia/channel";
|
|
2
|
+
import { IFireDoc } from "../../shared";
|
|
3
|
+
|
|
4
|
+
// ───────── ChatBee Channel ─────────
|
|
5
|
+
export interface IChatBeeChannel extends IFireDoc {
|
|
6
|
+
name: string; // Nome do canal
|
|
7
|
+
channel_id: string; // ID do canal
|
|
8
|
+
number: string; // Número do canal
|
|
9
|
+
type: string; // Tipo do canal
|
|
10
|
+
channel_uuid: string; // UUID do canal
|
|
11
|
+
hub_ia: IHubIAConfig; // Configurações da HubIA para este canal
|
|
12
|
+
[key: string]: unknown; // index signature
|
|
13
|
+
}
|
|
@@ -2,3 +2,4 @@ export declare const EVO_CHAT_APP = "evo-chat";
|
|
|
2
2
|
export declare const CONTACTS_COLLECTION = "contacts";
|
|
3
3
|
export declare const PROTOCOLS_COLLECTION = "protocols";
|
|
4
4
|
export declare const HSM_MESSAGES_COLLECTION = "hsm-messages";
|
|
5
|
+
export declare const CHATBEE_CHANNELS_COLLECTION = "chatbee-channels";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HSM_MESSAGES_COLLECTION = exports.PROTOCOLS_COLLECTION = exports.CONTACTS_COLLECTION = exports.EVO_CHAT_APP = void 0;
|
|
3
|
+
exports.CHATBEE_CHANNELS_COLLECTION = exports.HSM_MESSAGES_COLLECTION = exports.PROTOCOLS_COLLECTION = exports.CONTACTS_COLLECTION = exports.EVO_CHAT_APP = void 0;
|
|
4
4
|
//EVO Chat Application Doc
|
|
5
5
|
exports.EVO_CHAT_APP = "evo-chat";
|
|
6
6
|
//contacts collection
|
|
@@ -9,3 +9,5 @@ exports.CONTACTS_COLLECTION = "contacts";
|
|
|
9
9
|
exports.PROTOCOLS_COLLECTION = "protocols";
|
|
10
10
|
//protocols collection
|
|
11
11
|
exports.HSM_MESSAGES_COLLECTION = "hsm-messages";
|
|
12
|
+
//chatbee-channels collection
|
|
13
|
+
exports.CHATBEE_CHANNELS_COLLECTION = "chatbee-channels";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type HubIAOperationMode = "reply" | "suggestion";
|
|
2
|
+
export declare enum IHubIAOperationMode {
|
|
3
|
+
Reply = "reply",// Modo de resposta automática
|
|
4
|
+
Suggestion = "suggestion"
|
|
5
|
+
}
|
|
6
|
+
export interface IHubIAConfig {
|
|
7
|
+
default_operation_mode: HubIAOperationMode;
|
|
8
|
+
active: boolean;
|
|
9
|
+
enabled_for_new_contacts: boolean;
|
|
10
|
+
auto_reactivate: boolean;
|
|
11
|
+
system_message_prompt: string;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IHubIAOperationMode = void 0;
|
|
4
|
+
var IHubIAOperationMode;
|
|
5
|
+
(function (IHubIAOperationMode) {
|
|
6
|
+
IHubIAOperationMode["Reply"] = "reply";
|
|
7
|
+
IHubIAOperationMode["Suggestion"] = "suggestion";
|
|
8
|
+
})(IHubIAOperationMode || (exports.IHubIAOperationMode = IHubIAOperationMode = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// ───────── HubIA Operation Mode ─────────
|
|
2
|
+
export type HubIAOperationMode = "reply" | "suggestion";
|
|
3
|
+
|
|
4
|
+
export enum IHubIAOperationMode {
|
|
5
|
+
Reply = "reply", // Modo de resposta automática
|
|
6
|
+
Suggestion = "suggestion", // Modo de sugestão de respostas
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// ───────── HubIA Config ─────────
|
|
10
|
+
export interface IHubIAConfig {
|
|
11
|
+
default_operation_mode: HubIAOperationMode; // Modo de operação padrão
|
|
12
|
+
active: boolean; // Indica se a IA está ativa (default: false)
|
|
13
|
+
enabled_for_new_contacts: boolean; // Ativado para novos contatos (default: false)
|
|
14
|
+
auto_reactivate: boolean; // Reativar automaticamente (default: false)
|
|
15
|
+
system_message_prompt: string; // Prompt da mensagem do sistema
|
|
16
|
+
[key: string]: unknown; // index signature
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./channel";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./channel"), exports);
|
|
@@ -121,6 +121,7 @@ export interface IPatient extends IProfile {
|
|
|
121
121
|
blood_type?: BloodType | null;
|
|
122
122
|
allergies?: IPatientAllergy[] | null;
|
|
123
123
|
chronic_conditions?: IPatientChronicCondition[] | null;
|
|
124
|
+
notes?: string | null;
|
|
124
125
|
tags?: ITag[] | null;
|
|
125
126
|
userRef?: FirestoreDocumentReference;
|
|
126
127
|
[key: string]: unknown;
|
|
@@ -176,6 +176,7 @@ export interface IPatient extends IProfile {
|
|
|
176
176
|
blood_type?: BloodType | null; // Tipo sanguíneo
|
|
177
177
|
allergies?: IPatientAllergy[] | null; // Lista de alergias conhecidas
|
|
178
178
|
chronic_conditions?: IPatientChronicCondition[] | null; // Lista de doenças crônicas do paciente
|
|
179
|
+
notes?: string | null; // Anotações sobre o paciente
|
|
179
180
|
tags?: ITag[] | null;
|
|
180
181
|
userRef?: FirestoreDocumentReference;
|
|
181
182
|
[key: string]: unknown; // index signature
|