evo360-types 1.3.108 → 1.3.111
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 +338 -0
- package/dist/apps/evo-chat/chatbee/zod-schemas.js +52 -2
- package/dist/apps/evo-chat/chatbee/zod-schemas.ts +58 -1
- package/dist/apps/evo-chat/contact/zod-schemas.d.ts +456 -35
- package/dist/apps/evo-chat/contact/zod-schemas.js +11 -16
- package/dist/apps/evo-chat/contact/zod-schemas.ts +12 -15
- package/dist/apps/evo-hub-ia/channel/zod-schemas.d.ts +19 -0
- package/dist/apps/evo-hub-ia/channel/zod-schemas.js +13 -1
- package/dist/apps/evo-hub-ia/channel/zod-schemas.ts +13 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.ts +1 -1
- package/dist/types/evo-chat/chatbee/index.d.ts +43 -0
- package/dist/types/evo-chat/chatbee/index.ts +57 -0
- package/dist/types/evo-chat/contact/index.d.ts +8 -13
- package/dist/types/evo-chat/contact/index.ts +12 -15
- package/dist/types/evo-hub-ia/channel/index.d.ts +12 -0
- package/dist/types/evo-hub-ia/channel/index.js +7 -1
- package/dist/types/evo-hub-ia/channel/index.ts +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -26,9 +26,9 @@ export * from "./apps/evo-activity/zod-schemas";
|
|
|
26
26
|
export * from "./apps/evo-people/zod-schemas";
|
|
27
27
|
export * from "./apps/evo-crm/dic/zod-schemas";
|
|
28
28
|
export * from "./apps/evo-crm/lead/zod-schemas";
|
|
29
|
+
export * from "./apps/evo-chat/chatbee/zod-schemas";
|
|
29
30
|
export * from "./apps/evo-chat/contact/zod-schemas";
|
|
30
31
|
export * from "./apps/evo-chat/message/zod-schemas";
|
|
31
|
-
export * from "./apps/evo-chat/chatbee/zod-schemas";
|
|
32
32
|
export * from "./apps/evo-hub-ia/channel/zod-schemas";
|
|
33
33
|
export * from "./apps/evo-med/calendar/zod-schemas";
|
|
34
34
|
export * from "./apps/evo-med/appointment/zod-schemas";
|
package/dist/index.js
CHANGED
|
@@ -41,9 +41,9 @@ __exportStar(require("./apps/evo-activity/zod-schemas"), exports);
|
|
|
41
41
|
__exportStar(require("./apps/evo-people/zod-schemas"), exports);
|
|
42
42
|
__exportStar(require("./apps/evo-crm/dic/zod-schemas"), exports);
|
|
43
43
|
__exportStar(require("./apps/evo-crm/lead/zod-schemas"), exports);
|
|
44
|
+
__exportStar(require("./apps/evo-chat/chatbee/zod-schemas"), exports);
|
|
44
45
|
__exportStar(require("./apps/evo-chat/contact/zod-schemas"), exports);
|
|
45
46
|
__exportStar(require("./apps/evo-chat/message/zod-schemas"), exports);
|
|
46
|
-
__exportStar(require("./apps/evo-chat/chatbee/zod-schemas"), exports);
|
|
47
47
|
__exportStar(require("./apps/evo-hub-ia/channel/zod-schemas"), exports);
|
|
48
48
|
__exportStar(require("./apps/evo-med/calendar/zod-schemas"), exports);
|
|
49
49
|
__exportStar(require("./apps/evo-med/appointment/zod-schemas"), exports);
|
package/dist/index.ts
CHANGED
|
@@ -26,9 +26,9 @@ export * from "./apps/evo-activity/zod-schemas";
|
|
|
26
26
|
export * from "./apps/evo-people/zod-schemas";
|
|
27
27
|
export * from "./apps/evo-crm/dic/zod-schemas";
|
|
28
28
|
export * from "./apps/evo-crm/lead/zod-schemas";
|
|
29
|
+
export * from "./apps/evo-chat/chatbee/zod-schemas";
|
|
29
30
|
export * from "./apps/evo-chat/contact/zod-schemas";
|
|
30
31
|
export * from "./apps/evo-chat/message/zod-schemas";
|
|
31
|
-
export * from "./apps/evo-chat/chatbee/zod-schemas";
|
|
32
32
|
export * from "./apps/evo-hub-ia/channel/zod-schemas";
|
|
33
33
|
export * from "./apps/evo-med/calendar/zod-schemas";
|
|
34
34
|
export * from "./apps/evo-med/appointment/zod-schemas";
|
|
@@ -9,3 +9,46 @@ export interface IChatBeeChannelConfig extends IFireDoc {
|
|
|
9
9
|
hub_ia: IHubIAConfig;
|
|
10
10
|
[key: string]: unknown;
|
|
11
11
|
}
|
|
12
|
+
export interface IChatbeeChannel {
|
|
13
|
+
id: string;
|
|
14
|
+
external_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IChatbeeDepartment {
|
|
18
|
+
external_id?: string;
|
|
19
|
+
id?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IChatbeeStatus {
|
|
23
|
+
external_id?: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IChatbeeContact {
|
|
28
|
+
id: string;
|
|
29
|
+
external_id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
is_group: string;
|
|
32
|
+
address: string;
|
|
33
|
+
type: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IChatbeeContactHistoryPayloadCreated {
|
|
36
|
+
department?: IChatbeeDepartment;
|
|
37
|
+
}
|
|
38
|
+
export interface IChatbeeContactHistoryPayloadClosed {
|
|
39
|
+
department?: IChatbeeDepartment;
|
|
40
|
+
status?: IChatbeeStatus;
|
|
41
|
+
}
|
|
42
|
+
export interface IChatbeeContactHistory {
|
|
43
|
+
id?: string;
|
|
44
|
+
channel_id?: string;
|
|
45
|
+
contact_id?: number;
|
|
46
|
+
department_id?: string;
|
|
47
|
+
department_name?: string;
|
|
48
|
+
created_at?: any;
|
|
49
|
+
history_id?: number;
|
|
50
|
+
payload_created?: IChatbeeContactHistoryPayloadCreated;
|
|
51
|
+
payload_closed?: IChatbeeContactHistoryPayloadClosed;
|
|
52
|
+
status_name?: string;
|
|
53
|
+
updated_at?: any;
|
|
54
|
+
}
|
|
@@ -11,3 +11,60 @@ export interface IChatBeeChannelConfig extends IFireDoc {
|
|
|
11
11
|
hub_ia: IHubIAConfig; // Configurações da HubIA para este canal
|
|
12
12
|
[key: string]: unknown; // index signature
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
// ───────── ChatBee Channel ─────────
|
|
16
|
+
export interface IChatbeeChannel {
|
|
17
|
+
id: string;
|
|
18
|
+
external_id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// ───────── ChatBee Department ─────────
|
|
23
|
+
export interface IChatbeeDepartment {
|
|
24
|
+
external_id?: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// ───────── ChatBee Status ─────────
|
|
30
|
+
export interface IChatbeeStatus {
|
|
31
|
+
external_id?: string;
|
|
32
|
+
id?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// ───────── ChatBee Contact ─────────
|
|
37
|
+
export interface IChatbeeContact {
|
|
38
|
+
id: string;
|
|
39
|
+
external_id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
is_group: string;
|
|
42
|
+
address: string;
|
|
43
|
+
type: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Interface para payload_created
|
|
47
|
+
export interface IChatbeeContactHistoryPayloadCreated {
|
|
48
|
+
department?: IChatbeeDepartment;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Interface para payload_closed
|
|
52
|
+
export interface IChatbeeContactHistoryPayloadClosed {
|
|
53
|
+
department?: IChatbeeDepartment;
|
|
54
|
+
status?: IChatbeeStatus;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Interface para o histórico do contato
|
|
58
|
+
export interface IChatbeeContactHistory {
|
|
59
|
+
id?: string;
|
|
60
|
+
channel_id?: string;
|
|
61
|
+
contact_id?: number;
|
|
62
|
+
department_id?: string;
|
|
63
|
+
department_name?: string;
|
|
64
|
+
created_at?: any;
|
|
65
|
+
history_id?: number;
|
|
66
|
+
payload_created?: IChatbeeContactHistoryPayloadCreated;
|
|
67
|
+
payload_closed?: IChatbeeContactHistoryPayloadClosed;
|
|
68
|
+
status_name?: string;
|
|
69
|
+
updated_at?: any;
|
|
70
|
+
}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
|
|
2
|
-
|
|
3
|
-
id: string;
|
|
4
|
-
external_id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IChatbeeContact {
|
|
8
|
-
id: string;
|
|
9
|
-
external_id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
is_group: string;
|
|
12
|
-
address: string;
|
|
13
|
-
type: string;
|
|
14
|
-
}
|
|
2
|
+
import { IChatbeeChannel, IChatbeeContact, IChatbeeContactHistory } from "../chatbee";
|
|
15
3
|
export interface IChatContact extends IFireDoc {
|
|
16
4
|
channel?: IChatbeeChannel | null;
|
|
17
5
|
contact?: IChatbeeContact | null;
|
|
18
6
|
lead_id?: string | null;
|
|
19
7
|
lead_ref?: FirestoreDocumentReference | null;
|
|
8
|
+
histories?: IChatbeeContactHistory[];
|
|
9
|
+
ai_active?: boolean;
|
|
10
|
+
hub_ia_action?: string;
|
|
11
|
+
hub_ia_status?: string;
|
|
12
|
+
hub_ia_suggestion?: string;
|
|
13
|
+
hub_ia_action_suggestion?: string;
|
|
14
|
+
hub_ia_mode?: string;
|
|
20
15
|
tags?: ITag[] | null;
|
|
21
16
|
userRef?: FirestoreDocumentReference;
|
|
22
17
|
[key: string]: unknown;
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface IChatbeeContact {
|
|
10
|
-
id: string;
|
|
11
|
-
external_id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
is_group: string;
|
|
14
|
-
address: string;
|
|
15
|
-
type: string;
|
|
16
|
-
}
|
|
2
|
+
import {
|
|
3
|
+
IChatbeeChannel,
|
|
4
|
+
IChatbeeContact,
|
|
5
|
+
IChatbeeContactHistory,
|
|
6
|
+
} from "../chatbee";
|
|
17
7
|
|
|
18
8
|
export interface IChatContact extends IFireDoc {
|
|
19
9
|
channel?: IChatbeeChannel | null;
|
|
20
10
|
contact?: IChatbeeContact | null;
|
|
21
11
|
lead_id?: string | null;
|
|
22
12
|
lead_ref?: FirestoreDocumentReference | null;
|
|
13
|
+
histories?: IChatbeeContactHistory[]; // Lista de históricos (opcional)
|
|
14
|
+
ai_active?: boolean; // Se o atendimento por IA está ativo
|
|
15
|
+
hub_ia_action?: string; // Qual ação a IA está fazendo
|
|
16
|
+
hub_ia_status?: string; // processing / done
|
|
17
|
+
hub_ia_suggestion?: string; // Sugestão de resposta
|
|
18
|
+
hub_ia_action_suggestion?: string; // Sugestão de ação da IA
|
|
19
|
+
hub_ia_mode?: string; // reply, suggestion
|
|
23
20
|
tags?: ITag[] | null;
|
|
24
21
|
userRef?: FirestoreDocumentReference;
|
|
25
22
|
[key: string]: unknown; // index signature
|
|
@@ -3,11 +3,23 @@ export declare enum IHubIAOperationMode {
|
|
|
3
3
|
Reply = "reply",// Modo de resposta automática
|
|
4
4
|
Suggestion = "suggestion"
|
|
5
5
|
}
|
|
6
|
+
export type TaskCreationMode = "disabled" | "suggestion" | "create";
|
|
7
|
+
export declare enum ITaskCreationMode {
|
|
8
|
+
Disabled = "disabled",// Desabilitado
|
|
9
|
+
Suggestion = "suggestion",// Sugestão
|
|
10
|
+
Create = "create"
|
|
11
|
+
}
|
|
6
12
|
export interface IHubIAConfig {
|
|
7
13
|
default_operation_mode: HubIAOperationMode;
|
|
8
14
|
active: boolean;
|
|
9
15
|
enabled_for_new_contacts: boolean;
|
|
10
16
|
auto_reactivate: boolean;
|
|
17
|
+
enable_audio_transcription: boolean;
|
|
18
|
+
allow_enable_ai_service: boolean;
|
|
19
|
+
allow_reply_mode: boolean;
|
|
20
|
+
transcribe_audio_when_ai_disabled: boolean;
|
|
21
|
+
suggest_agenda_action: boolean;
|
|
22
|
+
task_creation: TaskCreationMode;
|
|
11
23
|
system_message_prompt: string;
|
|
12
24
|
[key: string]: unknown;
|
|
13
25
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IHubIAOperationMode = void 0;
|
|
3
|
+
exports.ITaskCreationMode = exports.IHubIAOperationMode = void 0;
|
|
4
4
|
var IHubIAOperationMode;
|
|
5
5
|
(function (IHubIAOperationMode) {
|
|
6
6
|
IHubIAOperationMode["Reply"] = "reply";
|
|
7
7
|
IHubIAOperationMode["Suggestion"] = "suggestion";
|
|
8
8
|
})(IHubIAOperationMode || (exports.IHubIAOperationMode = IHubIAOperationMode = {}));
|
|
9
|
+
var ITaskCreationMode;
|
|
10
|
+
(function (ITaskCreationMode) {
|
|
11
|
+
ITaskCreationMode["Disabled"] = "disabled";
|
|
12
|
+
ITaskCreationMode["Suggestion"] = "suggestion";
|
|
13
|
+
ITaskCreationMode["Create"] = "create";
|
|
14
|
+
})(ITaskCreationMode || (exports.ITaskCreationMode = ITaskCreationMode = {}));
|
|
@@ -6,12 +6,27 @@ export enum IHubIAOperationMode {
|
|
|
6
6
|
Suggestion = "suggestion", // Modo de sugestão de respostas
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
// ───────── Task Creation Mode ─────────
|
|
10
|
+
export type TaskCreationMode = "disabled" | "suggestion" | "create";
|
|
11
|
+
|
|
12
|
+
export enum ITaskCreationMode {
|
|
13
|
+
Disabled = "disabled", // Desabilitado
|
|
14
|
+
Suggestion = "suggestion", // Sugestão
|
|
15
|
+
Create = "create", // Criar
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
// ───────── HubIA Config ─────────
|
|
10
19
|
export interface IHubIAConfig {
|
|
11
20
|
default_operation_mode: HubIAOperationMode; // Modo de operação padrão
|
|
12
21
|
active: boolean; // Indica se a IA está ativa (default: false)
|
|
13
22
|
enabled_for_new_contacts: boolean; // Ativado para novos contatos (default: false)
|
|
14
23
|
auto_reactivate: boolean; // Reativar automaticamente (default: false)
|
|
24
|
+
enable_audio_transcription: boolean; // Habilitar transcrever áudio
|
|
25
|
+
allow_enable_ai_service: boolean; // Permitir ativar atendimento por IA
|
|
26
|
+
allow_reply_mode: boolean; // Permitir mode reply
|
|
27
|
+
transcribe_audio_when_ai_disabled: boolean; // Transcrever audio IA desativada
|
|
28
|
+
suggest_agenda_action: boolean; // Sugerir uma ação na agenda
|
|
29
|
+
task_creation: TaskCreationMode; // Criação de tarefas
|
|
15
30
|
system_message_prompt: string; // Prompt da mensagem do sistema
|
|
16
31
|
[key: string]: unknown; // index signature
|
|
17
32
|
}
|