evo360-types 1.3.109 → 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.
@@ -153,3 +153,287 @@ export declare const zChatBeeChannelConfigSchema: z.ZodObject<z.objectUtil.exten
153
153
  suggest_agenda_action?: boolean | undefined;
154
154
  }>;
155
155
  }>, z.ZodTypeAny, "passthrough">>;
156
+ export declare const zChatbeeChannelSchema: z.ZodObject<{
157
+ id: z.ZodString;
158
+ external_id: z.ZodString;
159
+ name: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ name: string;
162
+ id: string;
163
+ external_id: string;
164
+ }, {
165
+ name: string;
166
+ id: string;
167
+ external_id: string;
168
+ }>;
169
+ export declare const zChatbeeDepartmentSchema: z.ZodObject<{
170
+ external_id: z.ZodOptional<z.ZodString>;
171
+ id: z.ZodOptional<z.ZodString>;
172
+ name: z.ZodOptional<z.ZodString>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ name?: string | undefined;
175
+ id?: string | undefined;
176
+ external_id?: string | undefined;
177
+ }, {
178
+ name?: string | undefined;
179
+ id?: string | undefined;
180
+ external_id?: string | undefined;
181
+ }>;
182
+ export declare const zChatbeeStatusSchema: z.ZodObject<{
183
+ external_id: z.ZodOptional<z.ZodString>;
184
+ id: z.ZodOptional<z.ZodString>;
185
+ name: z.ZodOptional<z.ZodString>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ name?: string | undefined;
188
+ id?: string | undefined;
189
+ external_id?: string | undefined;
190
+ }, {
191
+ name?: string | undefined;
192
+ id?: string | undefined;
193
+ external_id?: string | undefined;
194
+ }>;
195
+ export declare const zChatbeeContactSchema: z.ZodObject<{
196
+ id: z.ZodString;
197
+ external_id: z.ZodString;
198
+ name: z.ZodString;
199
+ is_group: z.ZodString;
200
+ address: z.ZodString;
201
+ type: z.ZodString;
202
+ }, "strip", z.ZodTypeAny, {
203
+ name: string;
204
+ id: string;
205
+ type: string;
206
+ external_id: string;
207
+ address: string;
208
+ is_group: string;
209
+ }, {
210
+ name: string;
211
+ id: string;
212
+ type: string;
213
+ external_id: string;
214
+ address: string;
215
+ is_group: string;
216
+ }>;
217
+ export declare const zChatbeeContactHistoryPayloadCreatedSchema: z.ZodObject<{
218
+ department: z.ZodOptional<z.ZodObject<{
219
+ external_id: z.ZodOptional<z.ZodString>;
220
+ id: z.ZodOptional<z.ZodString>;
221
+ name: z.ZodOptional<z.ZodString>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ name?: string | undefined;
224
+ id?: string | undefined;
225
+ external_id?: string | undefined;
226
+ }, {
227
+ name?: string | undefined;
228
+ id?: string | undefined;
229
+ external_id?: string | undefined;
230
+ }>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ department?: {
233
+ name?: string | undefined;
234
+ id?: string | undefined;
235
+ external_id?: string | undefined;
236
+ } | undefined;
237
+ }, {
238
+ department?: {
239
+ name?: string | undefined;
240
+ id?: string | undefined;
241
+ external_id?: string | undefined;
242
+ } | undefined;
243
+ }>;
244
+ export declare const zChatbeeContactHistoryPayloadClosedSchema: z.ZodObject<{
245
+ department: z.ZodOptional<z.ZodObject<{
246
+ external_id: z.ZodOptional<z.ZodString>;
247
+ id: z.ZodOptional<z.ZodString>;
248
+ name: z.ZodOptional<z.ZodString>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ name?: string | undefined;
251
+ id?: string | undefined;
252
+ external_id?: string | undefined;
253
+ }, {
254
+ name?: string | undefined;
255
+ id?: string | undefined;
256
+ external_id?: string | undefined;
257
+ }>>;
258
+ status: z.ZodOptional<z.ZodObject<{
259
+ external_id: z.ZodOptional<z.ZodString>;
260
+ id: z.ZodOptional<z.ZodString>;
261
+ name: z.ZodOptional<z.ZodString>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ name?: string | undefined;
264
+ id?: string | undefined;
265
+ external_id?: string | undefined;
266
+ }, {
267
+ name?: string | undefined;
268
+ id?: string | undefined;
269
+ external_id?: string | undefined;
270
+ }>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ status?: {
273
+ name?: string | undefined;
274
+ id?: string | undefined;
275
+ external_id?: string | undefined;
276
+ } | undefined;
277
+ department?: {
278
+ name?: string | undefined;
279
+ id?: string | undefined;
280
+ external_id?: string | undefined;
281
+ } | undefined;
282
+ }, {
283
+ status?: {
284
+ name?: string | undefined;
285
+ id?: string | undefined;
286
+ external_id?: string | undefined;
287
+ } | undefined;
288
+ department?: {
289
+ name?: string | undefined;
290
+ id?: string | undefined;
291
+ external_id?: string | undefined;
292
+ } | undefined;
293
+ }>;
294
+ export declare const zChatbeeContactHistorySchema: z.ZodObject<{
295
+ id: z.ZodOptional<z.ZodString>;
296
+ channel_id: z.ZodOptional<z.ZodString>;
297
+ contact_id: z.ZodOptional<z.ZodNumber>;
298
+ department_id: z.ZodOptional<z.ZodString>;
299
+ department_name: z.ZodOptional<z.ZodString>;
300
+ created_at: z.ZodOptional<z.ZodAny>;
301
+ history_id: z.ZodOptional<z.ZodNumber>;
302
+ payload_created: z.ZodOptional<z.ZodObject<{
303
+ department: z.ZodOptional<z.ZodObject<{
304
+ external_id: z.ZodOptional<z.ZodString>;
305
+ id: z.ZodOptional<z.ZodString>;
306
+ name: z.ZodOptional<z.ZodString>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ name?: string | undefined;
309
+ id?: string | undefined;
310
+ external_id?: string | undefined;
311
+ }, {
312
+ name?: string | undefined;
313
+ id?: string | undefined;
314
+ external_id?: string | undefined;
315
+ }>>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ department?: {
318
+ name?: string | undefined;
319
+ id?: string | undefined;
320
+ external_id?: string | undefined;
321
+ } | undefined;
322
+ }, {
323
+ department?: {
324
+ name?: string | undefined;
325
+ id?: string | undefined;
326
+ external_id?: string | undefined;
327
+ } | undefined;
328
+ }>>;
329
+ payload_closed: z.ZodOptional<z.ZodObject<{
330
+ department: z.ZodOptional<z.ZodObject<{
331
+ external_id: z.ZodOptional<z.ZodString>;
332
+ id: z.ZodOptional<z.ZodString>;
333
+ name: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ name?: string | undefined;
336
+ id?: string | undefined;
337
+ external_id?: string | undefined;
338
+ }, {
339
+ name?: string | undefined;
340
+ id?: string | undefined;
341
+ external_id?: string | undefined;
342
+ }>>;
343
+ status: z.ZodOptional<z.ZodObject<{
344
+ external_id: z.ZodOptional<z.ZodString>;
345
+ id: z.ZodOptional<z.ZodString>;
346
+ name: z.ZodOptional<z.ZodString>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ name?: string | undefined;
349
+ id?: string | undefined;
350
+ external_id?: string | undefined;
351
+ }, {
352
+ name?: string | undefined;
353
+ id?: string | undefined;
354
+ external_id?: string | undefined;
355
+ }>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ status?: {
358
+ name?: string | undefined;
359
+ id?: string | undefined;
360
+ external_id?: string | undefined;
361
+ } | undefined;
362
+ department?: {
363
+ name?: string | undefined;
364
+ id?: string | undefined;
365
+ external_id?: string | undefined;
366
+ } | undefined;
367
+ }, {
368
+ status?: {
369
+ name?: string | undefined;
370
+ id?: string | undefined;
371
+ external_id?: string | undefined;
372
+ } | undefined;
373
+ department?: {
374
+ name?: string | undefined;
375
+ id?: string | undefined;
376
+ external_id?: string | undefined;
377
+ } | undefined;
378
+ }>>;
379
+ status_name: z.ZodOptional<z.ZodString>;
380
+ updated_at: z.ZodOptional<z.ZodAny>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ id?: string | undefined;
383
+ created_at?: any;
384
+ updated_at?: any;
385
+ department_name?: string | undefined;
386
+ channel_id?: string | undefined;
387
+ department_id?: string | undefined;
388
+ contact_id?: number | undefined;
389
+ history_id?: number | undefined;
390
+ payload_created?: {
391
+ department?: {
392
+ name?: string | undefined;
393
+ id?: string | undefined;
394
+ external_id?: string | undefined;
395
+ } | undefined;
396
+ } | undefined;
397
+ payload_closed?: {
398
+ status?: {
399
+ name?: string | undefined;
400
+ id?: string | undefined;
401
+ external_id?: string | undefined;
402
+ } | undefined;
403
+ department?: {
404
+ name?: string | undefined;
405
+ id?: string | undefined;
406
+ external_id?: string | undefined;
407
+ } | undefined;
408
+ } | undefined;
409
+ status_name?: string | undefined;
410
+ }, {
411
+ id?: string | undefined;
412
+ created_at?: any;
413
+ updated_at?: any;
414
+ department_name?: string | undefined;
415
+ channel_id?: string | undefined;
416
+ department_id?: string | undefined;
417
+ contact_id?: number | undefined;
418
+ history_id?: number | undefined;
419
+ payload_created?: {
420
+ department?: {
421
+ name?: string | undefined;
422
+ id?: string | undefined;
423
+ external_id?: string | undefined;
424
+ } | undefined;
425
+ } | undefined;
426
+ payload_closed?: {
427
+ status?: {
428
+ name?: string | undefined;
429
+ id?: string | undefined;
430
+ external_id?: string | undefined;
431
+ } | undefined;
432
+ department?: {
433
+ name?: string | undefined;
434
+ id?: string | undefined;
435
+ external_id?: string | undefined;
436
+ } | undefined;
437
+ } | undefined;
438
+ status_name?: string | undefined;
439
+ }>;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zChatBeeChannelConfigSchema = void 0;
3
+ exports.zChatbeeContactHistorySchema = exports.zChatbeeContactHistoryPayloadClosedSchema = exports.zChatbeeContactHistoryPayloadCreatedSchema = exports.zChatbeeContactSchema = exports.zChatbeeStatusSchema = exports.zChatbeeDepartmentSchema = exports.zChatbeeChannelSchema = exports.zChatBeeChannelConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  const zod_schemas_2 = require("../../evo-hub-ia/channel/zod-schemas");
7
- // ───────── ChatBee Channel ─────────
7
+ // ───────── ChatBee Channel Config ─────────
8
8
  exports.zChatBeeChannelConfigSchema = zod_schemas_1.zFireDocSchema
9
9
  .extend({
10
10
  name: zod_1.z.string(), // Nome do canal
@@ -15,3 +15,53 @@ exports.zChatBeeChannelConfigSchema = zod_schemas_1.zFireDocSchema
15
15
  hub_ia: zod_schemas_2.zHubIAConfigSchema, // Configurações da HubIA para este canal
16
16
  })
17
17
  .passthrough();
18
+ // ───────── ChatBee Channel ─────────
19
+ exports.zChatbeeChannelSchema = zod_1.z.object({
20
+ id: zod_1.z.string(),
21
+ external_id: zod_1.z.string(),
22
+ name: zod_1.z.string(),
23
+ });
24
+ // ───────── ChatBee Department ─────────
25
+ exports.zChatbeeDepartmentSchema = zod_1.z.object({
26
+ external_id: zod_1.z.string().optional(),
27
+ id: zod_1.z.string().optional(),
28
+ name: zod_1.z.string().optional(),
29
+ });
30
+ // ───────── ChatBee Status ─────────
31
+ exports.zChatbeeStatusSchema = zod_1.z.object({
32
+ external_id: zod_1.z.string().optional(),
33
+ id: zod_1.z.string().optional(),
34
+ name: zod_1.z.string().optional(),
35
+ });
36
+ // ───────── ChatBee Contact ─────────
37
+ exports.zChatbeeContactSchema = zod_1.z.object({
38
+ id: zod_1.z.string(),
39
+ external_id: zod_1.z.string(),
40
+ name: zod_1.z.string(),
41
+ is_group: zod_1.z.string(),
42
+ address: zod_1.z.string(),
43
+ type: zod_1.z.string(),
44
+ });
45
+ // ───────── ChatBee Contact History Payload Created ─────────
46
+ exports.zChatbeeContactHistoryPayloadCreatedSchema = zod_1.z.object({
47
+ department: exports.zChatbeeDepartmentSchema.optional(),
48
+ });
49
+ // ───────── ChatBee Contact History Payload Closed ─────────
50
+ exports.zChatbeeContactHistoryPayloadClosedSchema = zod_1.z.object({
51
+ department: exports.zChatbeeDepartmentSchema.optional(),
52
+ status: exports.zChatbeeStatusSchema.optional(),
53
+ });
54
+ // ───────── ChatBee Contact History ─────────
55
+ exports.zChatbeeContactHistorySchema = zod_1.z.object({
56
+ id: zod_1.z.string().optional(),
57
+ channel_id: zod_1.z.string().optional(),
58
+ contact_id: zod_1.z.number().optional(),
59
+ department_id: zod_1.z.string().optional(),
60
+ department_name: zod_1.z.string().optional(),
61
+ created_at: zod_1.z.any().optional(),
62
+ history_id: zod_1.z.number().optional(),
63
+ payload_created: exports.zChatbeeContactHistoryPayloadCreatedSchema.optional(),
64
+ payload_closed: exports.zChatbeeContactHistoryPayloadClosedSchema.optional(),
65
+ status_name: zod_1.z.string().optional(),
66
+ updated_at: zod_1.z.any().optional(),
67
+ });
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import { zFireDocSchema } from "../../shared/zod-schemas";
3
3
  import { zHubIAConfigSchema } from "../../evo-hub-ia/channel/zod-schemas";
4
4
 
5
- // ───────── ChatBee Channel ─────────
5
+ // ───────── ChatBee Channel Config ─────────
6
6
  export const zChatBeeChannelConfigSchema = zFireDocSchema
7
7
  .extend({
8
8
  name: z.string(), // Nome do canal
@@ -13,3 +13,60 @@ export const zChatBeeChannelConfigSchema = zFireDocSchema
13
13
  hub_ia: zHubIAConfigSchema, // Configurações da HubIA para este canal
14
14
  })
15
15
  .passthrough();
16
+
17
+ // ───────── ChatBee Channel ─────────
18
+ export const zChatbeeChannelSchema = z.object({
19
+ id: z.string(),
20
+ external_id: z.string(),
21
+ name: z.string(),
22
+ });
23
+
24
+ // ───────── ChatBee Department ─────────
25
+ export const zChatbeeDepartmentSchema = z.object({
26
+ external_id: z.string().optional(),
27
+ id: z.string().optional(),
28
+ name: z.string().optional(),
29
+ });
30
+
31
+ // ───────── ChatBee Status ─────────
32
+ export const zChatbeeStatusSchema = z.object({
33
+ external_id: z.string().optional(),
34
+ id: z.string().optional(),
35
+ name: z.string().optional(),
36
+ });
37
+
38
+ // ───────── ChatBee Contact ─────────
39
+ export const zChatbeeContactSchema = z.object({
40
+ id: z.string(),
41
+ external_id: z.string(),
42
+ name: z.string(),
43
+ is_group: z.string(),
44
+ address: z.string(),
45
+ type: z.string(),
46
+ });
47
+
48
+ // ───────── ChatBee Contact History Payload Created ─────────
49
+ export const zChatbeeContactHistoryPayloadCreatedSchema = z.object({
50
+ department: zChatbeeDepartmentSchema.optional(),
51
+ });
52
+
53
+ // ───────── ChatBee Contact History Payload Closed ─────────
54
+ export const zChatbeeContactHistoryPayloadClosedSchema = z.object({
55
+ department: zChatbeeDepartmentSchema.optional(),
56
+ status: zChatbeeStatusSchema.optional(),
57
+ });
58
+
59
+ // ───────── ChatBee Contact History ─────────
60
+ export const zChatbeeContactHistorySchema = z.object({
61
+ id: z.string().optional(),
62
+ channel_id: z.string().optional(),
63
+ contact_id: z.number().optional(),
64
+ department_id: z.string().optional(),
65
+ department_name: z.string().optional(),
66
+ created_at: z.any().optional(),
67
+ history_id: z.number().optional(),
68
+ payload_created: zChatbeeContactHistoryPayloadCreatedSchema.optional(),
69
+ payload_closed: zChatbeeContactHistoryPayloadClosedSchema.optional(),
70
+ status_name: z.string().optional(),
71
+ updated_at: z.any().optional(),
72
+ });
@@ -1,39 +1,4 @@
1
1
  import { z } from "zod";
2
- export declare const zChatbeeChannelSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- external_id: z.ZodString;
5
- name: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- name: string;
8
- id: string;
9
- external_id: string;
10
- }, {
11
- name: string;
12
- id: string;
13
- external_id: string;
14
- }>;
15
- export declare const zChatbeeContactSchema: z.ZodObject<{
16
- id: z.ZodString;
17
- external_id: z.ZodString;
18
- name: z.ZodString;
19
- is_group: z.ZodString;
20
- address: z.ZodString;
21
- type: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- name: string;
24
- id: string;
25
- type: string;
26
- external_id: string;
27
- address: string;
28
- is_group: string;
29
- }, {
30
- name: string;
31
- id: string;
32
- type: string;
33
- external_id: string;
34
- address: string;
35
- is_group: string;
36
- }>;
37
2
  export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
38
3
  id: z.ZodString;
39
4
  ref: z.ZodAny;
@@ -80,6 +45,158 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
80
45
  }>>>;
81
46
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
47
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
48
+ histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ id: z.ZodOptional<z.ZodString>;
50
+ channel_id: z.ZodOptional<z.ZodString>;
51
+ contact_id: z.ZodOptional<z.ZodNumber>;
52
+ department_id: z.ZodOptional<z.ZodString>;
53
+ department_name: z.ZodOptional<z.ZodString>;
54
+ created_at: z.ZodOptional<z.ZodAny>;
55
+ history_id: z.ZodOptional<z.ZodNumber>;
56
+ payload_created: z.ZodOptional<z.ZodObject<{
57
+ department: z.ZodOptional<z.ZodObject<{
58
+ external_id: z.ZodOptional<z.ZodString>;
59
+ id: z.ZodOptional<z.ZodString>;
60
+ name: z.ZodOptional<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ name?: string | undefined;
63
+ id?: string | undefined;
64
+ external_id?: string | undefined;
65
+ }, {
66
+ name?: string | undefined;
67
+ id?: string | undefined;
68
+ external_id?: string | undefined;
69
+ }>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ department?: {
72
+ name?: string | undefined;
73
+ id?: string | undefined;
74
+ external_id?: string | undefined;
75
+ } | undefined;
76
+ }, {
77
+ department?: {
78
+ name?: string | undefined;
79
+ id?: string | undefined;
80
+ external_id?: string | undefined;
81
+ } | undefined;
82
+ }>>;
83
+ payload_closed: z.ZodOptional<z.ZodObject<{
84
+ department: z.ZodOptional<z.ZodObject<{
85
+ external_id: z.ZodOptional<z.ZodString>;
86
+ id: z.ZodOptional<z.ZodString>;
87
+ name: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ name?: string | undefined;
90
+ id?: string | undefined;
91
+ external_id?: string | undefined;
92
+ }, {
93
+ name?: string | undefined;
94
+ id?: string | undefined;
95
+ external_id?: string | undefined;
96
+ }>>;
97
+ status: z.ZodOptional<z.ZodObject<{
98
+ external_id: z.ZodOptional<z.ZodString>;
99
+ id: z.ZodOptional<z.ZodString>;
100
+ name: z.ZodOptional<z.ZodString>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ name?: string | undefined;
103
+ id?: string | undefined;
104
+ external_id?: string | undefined;
105
+ }, {
106
+ name?: string | undefined;
107
+ id?: string | undefined;
108
+ external_id?: string | undefined;
109
+ }>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ status?: {
112
+ name?: string | undefined;
113
+ id?: string | undefined;
114
+ external_id?: string | undefined;
115
+ } | undefined;
116
+ department?: {
117
+ name?: string | undefined;
118
+ id?: string | undefined;
119
+ external_id?: string | undefined;
120
+ } | undefined;
121
+ }, {
122
+ status?: {
123
+ name?: string | undefined;
124
+ id?: string | undefined;
125
+ external_id?: string | undefined;
126
+ } | undefined;
127
+ department?: {
128
+ name?: string | undefined;
129
+ id?: string | undefined;
130
+ external_id?: string | undefined;
131
+ } | undefined;
132
+ }>>;
133
+ status_name: z.ZodOptional<z.ZodString>;
134
+ updated_at: z.ZodOptional<z.ZodAny>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ id?: string | undefined;
137
+ created_at?: any;
138
+ updated_at?: any;
139
+ department_name?: string | undefined;
140
+ channel_id?: string | undefined;
141
+ department_id?: string | undefined;
142
+ contact_id?: number | undefined;
143
+ history_id?: number | undefined;
144
+ payload_created?: {
145
+ department?: {
146
+ name?: string | undefined;
147
+ id?: string | undefined;
148
+ external_id?: string | undefined;
149
+ } | undefined;
150
+ } | undefined;
151
+ payload_closed?: {
152
+ status?: {
153
+ name?: string | undefined;
154
+ id?: string | undefined;
155
+ external_id?: string | undefined;
156
+ } | undefined;
157
+ department?: {
158
+ name?: string | undefined;
159
+ id?: string | undefined;
160
+ external_id?: string | undefined;
161
+ } | undefined;
162
+ } | undefined;
163
+ status_name?: string | undefined;
164
+ }, {
165
+ id?: string | undefined;
166
+ created_at?: any;
167
+ updated_at?: any;
168
+ department_name?: string | undefined;
169
+ channel_id?: string | undefined;
170
+ department_id?: string | undefined;
171
+ contact_id?: number | undefined;
172
+ history_id?: number | undefined;
173
+ payload_created?: {
174
+ department?: {
175
+ name?: string | undefined;
176
+ id?: string | undefined;
177
+ external_id?: string | undefined;
178
+ } | undefined;
179
+ } | undefined;
180
+ payload_closed?: {
181
+ status?: {
182
+ name?: string | undefined;
183
+ id?: string | undefined;
184
+ external_id?: string | undefined;
185
+ } | undefined;
186
+ department?: {
187
+ name?: string | undefined;
188
+ id?: string | undefined;
189
+ external_id?: string | undefined;
190
+ } | undefined;
191
+ } | undefined;
192
+ status_name?: string | undefined;
193
+ }>, "many">>;
194
+ ai_active: z.ZodOptional<z.ZodBoolean>;
195
+ hub_ia_action: z.ZodOptional<z.ZodString>;
196
+ hub_ia_status: z.ZodOptional<z.ZodString>;
197
+ hub_ia_suggestion: z.ZodOptional<z.ZodString>;
198
+ hub_ia_action_suggestion: z.ZodOptional<z.ZodString>;
199
+ hub_ia_mode: z.ZodOptional<z.ZodString>;
83
200
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
84
201
  name: z.ZodString;
85
202
  color: z.ZodOptional<z.ZodString>;
@@ -146,6 +263,158 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
146
263
  }>>>;
147
264
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
265
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
266
+ histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
267
+ id: z.ZodOptional<z.ZodString>;
268
+ channel_id: z.ZodOptional<z.ZodString>;
269
+ contact_id: z.ZodOptional<z.ZodNumber>;
270
+ department_id: z.ZodOptional<z.ZodString>;
271
+ department_name: z.ZodOptional<z.ZodString>;
272
+ created_at: z.ZodOptional<z.ZodAny>;
273
+ history_id: z.ZodOptional<z.ZodNumber>;
274
+ payload_created: z.ZodOptional<z.ZodObject<{
275
+ department: z.ZodOptional<z.ZodObject<{
276
+ external_id: z.ZodOptional<z.ZodString>;
277
+ id: z.ZodOptional<z.ZodString>;
278
+ name: z.ZodOptional<z.ZodString>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ name?: string | undefined;
281
+ id?: string | undefined;
282
+ external_id?: string | undefined;
283
+ }, {
284
+ name?: string | undefined;
285
+ id?: string | undefined;
286
+ external_id?: string | undefined;
287
+ }>>;
288
+ }, "strip", z.ZodTypeAny, {
289
+ department?: {
290
+ name?: string | undefined;
291
+ id?: string | undefined;
292
+ external_id?: string | undefined;
293
+ } | undefined;
294
+ }, {
295
+ department?: {
296
+ name?: string | undefined;
297
+ id?: string | undefined;
298
+ external_id?: string | undefined;
299
+ } | undefined;
300
+ }>>;
301
+ payload_closed: z.ZodOptional<z.ZodObject<{
302
+ department: z.ZodOptional<z.ZodObject<{
303
+ external_id: z.ZodOptional<z.ZodString>;
304
+ id: z.ZodOptional<z.ZodString>;
305
+ name: z.ZodOptional<z.ZodString>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ name?: string | undefined;
308
+ id?: string | undefined;
309
+ external_id?: string | undefined;
310
+ }, {
311
+ name?: string | undefined;
312
+ id?: string | undefined;
313
+ external_id?: string | undefined;
314
+ }>>;
315
+ status: z.ZodOptional<z.ZodObject<{
316
+ external_id: z.ZodOptional<z.ZodString>;
317
+ id: z.ZodOptional<z.ZodString>;
318
+ name: z.ZodOptional<z.ZodString>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ name?: string | undefined;
321
+ id?: string | undefined;
322
+ external_id?: string | undefined;
323
+ }, {
324
+ name?: string | undefined;
325
+ id?: string | undefined;
326
+ external_id?: string | undefined;
327
+ }>>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ status?: {
330
+ name?: string | undefined;
331
+ id?: string | undefined;
332
+ external_id?: string | undefined;
333
+ } | undefined;
334
+ department?: {
335
+ name?: string | undefined;
336
+ id?: string | undefined;
337
+ external_id?: string | undefined;
338
+ } | undefined;
339
+ }, {
340
+ status?: {
341
+ name?: string | undefined;
342
+ id?: string | undefined;
343
+ external_id?: string | undefined;
344
+ } | undefined;
345
+ department?: {
346
+ name?: string | undefined;
347
+ id?: string | undefined;
348
+ external_id?: string | undefined;
349
+ } | undefined;
350
+ }>>;
351
+ status_name: z.ZodOptional<z.ZodString>;
352
+ updated_at: z.ZodOptional<z.ZodAny>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ id?: string | undefined;
355
+ created_at?: any;
356
+ updated_at?: any;
357
+ department_name?: string | undefined;
358
+ channel_id?: string | undefined;
359
+ department_id?: string | undefined;
360
+ contact_id?: number | undefined;
361
+ history_id?: number | undefined;
362
+ payload_created?: {
363
+ department?: {
364
+ name?: string | undefined;
365
+ id?: string | undefined;
366
+ external_id?: string | undefined;
367
+ } | undefined;
368
+ } | undefined;
369
+ payload_closed?: {
370
+ status?: {
371
+ name?: string | undefined;
372
+ id?: string | undefined;
373
+ external_id?: string | undefined;
374
+ } | undefined;
375
+ department?: {
376
+ name?: string | undefined;
377
+ id?: string | undefined;
378
+ external_id?: string | undefined;
379
+ } | undefined;
380
+ } | undefined;
381
+ status_name?: string | undefined;
382
+ }, {
383
+ id?: string | undefined;
384
+ created_at?: any;
385
+ updated_at?: any;
386
+ department_name?: string | undefined;
387
+ channel_id?: string | undefined;
388
+ department_id?: string | undefined;
389
+ contact_id?: number | undefined;
390
+ history_id?: number | undefined;
391
+ payload_created?: {
392
+ department?: {
393
+ name?: string | undefined;
394
+ id?: string | undefined;
395
+ external_id?: string | undefined;
396
+ } | undefined;
397
+ } | undefined;
398
+ payload_closed?: {
399
+ status?: {
400
+ name?: string | undefined;
401
+ id?: string | undefined;
402
+ external_id?: string | undefined;
403
+ } | undefined;
404
+ department?: {
405
+ name?: string | undefined;
406
+ id?: string | undefined;
407
+ external_id?: string | undefined;
408
+ } | undefined;
409
+ } | undefined;
410
+ status_name?: string | undefined;
411
+ }>, "many">>;
412
+ ai_active: z.ZodOptional<z.ZodBoolean>;
413
+ hub_ia_action: z.ZodOptional<z.ZodString>;
414
+ hub_ia_status: z.ZodOptional<z.ZodString>;
415
+ hub_ia_suggestion: z.ZodOptional<z.ZodString>;
416
+ hub_ia_action_suggestion: z.ZodOptional<z.ZodString>;
417
+ hub_ia_mode: z.ZodOptional<z.ZodString>;
149
418
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
150
419
  name: z.ZodString;
151
420
  color: z.ZodOptional<z.ZodString>;
@@ -212,6 +481,158 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
212
481
  }>>>;
213
482
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
483
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
484
+ histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
485
+ id: z.ZodOptional<z.ZodString>;
486
+ channel_id: z.ZodOptional<z.ZodString>;
487
+ contact_id: z.ZodOptional<z.ZodNumber>;
488
+ department_id: z.ZodOptional<z.ZodString>;
489
+ department_name: z.ZodOptional<z.ZodString>;
490
+ created_at: z.ZodOptional<z.ZodAny>;
491
+ history_id: z.ZodOptional<z.ZodNumber>;
492
+ payload_created: z.ZodOptional<z.ZodObject<{
493
+ department: z.ZodOptional<z.ZodObject<{
494
+ external_id: z.ZodOptional<z.ZodString>;
495
+ id: z.ZodOptional<z.ZodString>;
496
+ name: z.ZodOptional<z.ZodString>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ name?: string | undefined;
499
+ id?: string | undefined;
500
+ external_id?: string | undefined;
501
+ }, {
502
+ name?: string | undefined;
503
+ id?: string | undefined;
504
+ external_id?: string | undefined;
505
+ }>>;
506
+ }, "strip", z.ZodTypeAny, {
507
+ department?: {
508
+ name?: string | undefined;
509
+ id?: string | undefined;
510
+ external_id?: string | undefined;
511
+ } | undefined;
512
+ }, {
513
+ department?: {
514
+ name?: string | undefined;
515
+ id?: string | undefined;
516
+ external_id?: string | undefined;
517
+ } | undefined;
518
+ }>>;
519
+ payload_closed: z.ZodOptional<z.ZodObject<{
520
+ department: z.ZodOptional<z.ZodObject<{
521
+ external_id: z.ZodOptional<z.ZodString>;
522
+ id: z.ZodOptional<z.ZodString>;
523
+ name: z.ZodOptional<z.ZodString>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ name?: string | undefined;
526
+ id?: string | undefined;
527
+ external_id?: string | undefined;
528
+ }, {
529
+ name?: string | undefined;
530
+ id?: string | undefined;
531
+ external_id?: string | undefined;
532
+ }>>;
533
+ status: z.ZodOptional<z.ZodObject<{
534
+ external_id: z.ZodOptional<z.ZodString>;
535
+ id: z.ZodOptional<z.ZodString>;
536
+ name: z.ZodOptional<z.ZodString>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ name?: string | undefined;
539
+ id?: string | undefined;
540
+ external_id?: string | undefined;
541
+ }, {
542
+ name?: string | undefined;
543
+ id?: string | undefined;
544
+ external_id?: string | undefined;
545
+ }>>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ status?: {
548
+ name?: string | undefined;
549
+ id?: string | undefined;
550
+ external_id?: string | undefined;
551
+ } | undefined;
552
+ department?: {
553
+ name?: string | undefined;
554
+ id?: string | undefined;
555
+ external_id?: string | undefined;
556
+ } | undefined;
557
+ }, {
558
+ status?: {
559
+ name?: string | undefined;
560
+ id?: string | undefined;
561
+ external_id?: string | undefined;
562
+ } | undefined;
563
+ department?: {
564
+ name?: string | undefined;
565
+ id?: string | undefined;
566
+ external_id?: string | undefined;
567
+ } | undefined;
568
+ }>>;
569
+ status_name: z.ZodOptional<z.ZodString>;
570
+ updated_at: z.ZodOptional<z.ZodAny>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ id?: string | undefined;
573
+ created_at?: any;
574
+ updated_at?: any;
575
+ department_name?: string | undefined;
576
+ channel_id?: string | undefined;
577
+ department_id?: string | undefined;
578
+ contact_id?: number | undefined;
579
+ history_id?: number | undefined;
580
+ payload_created?: {
581
+ department?: {
582
+ name?: string | undefined;
583
+ id?: string | undefined;
584
+ external_id?: string | undefined;
585
+ } | undefined;
586
+ } | undefined;
587
+ payload_closed?: {
588
+ status?: {
589
+ name?: string | undefined;
590
+ id?: string | undefined;
591
+ external_id?: string | undefined;
592
+ } | undefined;
593
+ department?: {
594
+ name?: string | undefined;
595
+ id?: string | undefined;
596
+ external_id?: string | undefined;
597
+ } | undefined;
598
+ } | undefined;
599
+ status_name?: string | undefined;
600
+ }, {
601
+ id?: string | undefined;
602
+ created_at?: any;
603
+ updated_at?: any;
604
+ department_name?: string | undefined;
605
+ channel_id?: string | undefined;
606
+ department_id?: string | undefined;
607
+ contact_id?: number | undefined;
608
+ history_id?: number | undefined;
609
+ payload_created?: {
610
+ department?: {
611
+ name?: string | undefined;
612
+ id?: string | undefined;
613
+ external_id?: string | undefined;
614
+ } | undefined;
615
+ } | undefined;
616
+ payload_closed?: {
617
+ status?: {
618
+ name?: string | undefined;
619
+ id?: string | undefined;
620
+ external_id?: string | undefined;
621
+ } | undefined;
622
+ department?: {
623
+ name?: string | undefined;
624
+ id?: string | undefined;
625
+ external_id?: string | undefined;
626
+ } | undefined;
627
+ } | undefined;
628
+ status_name?: string | undefined;
629
+ }>, "many">>;
630
+ ai_active: z.ZodOptional<z.ZodBoolean>;
631
+ hub_ia_action: z.ZodOptional<z.ZodString>;
632
+ hub_ia_status: z.ZodOptional<z.ZodString>;
633
+ hub_ia_suggestion: z.ZodOptional<z.ZodString>;
634
+ hub_ia_action_suggestion: z.ZodOptional<z.ZodString>;
635
+ hub_ia_mode: z.ZodOptional<z.ZodString>;
215
636
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
216
637
  name: z.ZodString;
217
638
  color: z.ZodOptional<z.ZodString>;
@@ -1,27 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zChatContactSchema = exports.zChatbeeContactSchema = exports.zChatbeeChannelSchema = void 0;
3
+ exports.zChatContactSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
- exports.zChatbeeChannelSchema = zod_1.z.object({
7
- id: zod_1.z.string(),
8
- external_id: zod_1.z.string(),
9
- name: zod_1.z.string(),
10
- });
11
- exports.zChatbeeContactSchema = zod_1.z.object({
12
- id: zod_1.z.string(),
13
- external_id: zod_1.z.string(),
14
- name: zod_1.z.string(),
15
- is_group: zod_1.z.string(),
16
- address: zod_1.z.string(),
17
- type: zod_1.z.string(),
18
- });
6
+ const zod_schemas_2 = require("../chatbee/zod-schemas");
19
7
  exports.zChatContactSchema = zod_schemas_1.zFireDocSchema
20
8
  .extend({
21
- channel: exports.zChatbeeChannelSchema.nullable().optional(),
22
- contact: exports.zChatbeeContactSchema.nullable().optional(),
9
+ channel: zod_schemas_2.zChatbeeChannelSchema.nullable().optional(),
10
+ contact: zod_schemas_2.zChatbeeContactSchema.nullable().optional(),
23
11
  lead_id: zod_1.z.string().nullable().optional(),
24
12
  lead_ref: zod_1.z.any().nullable().optional(),
13
+ histories: zod_1.z.array(zod_schemas_2.zChatbeeContactHistorySchema).optional(), // Lista de históricos (opcional)
14
+ ai_active: zod_1.z.boolean().optional(), // Se o atendimento por IA está ativo
15
+ hub_ia_action: zod_1.z.string().optional(), // Qual ação a IA está fazendo
16
+ hub_ia_status: zod_1.z.string().optional(), // processing / done
17
+ hub_ia_suggestion: zod_1.z.string().optional(), // Sugestão de resposta
18
+ hub_ia_action_suggestion: zod_1.z.string().optional(), // Sugestão de ação da IA
19
+ hub_ia_mode: zod_1.z.string().optional(), // reply, suggestion
25
20
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
26
21
  userRef: zod_1.z.any(),
27
22
  })
@@ -1,20 +1,10 @@
1
1
  import { z } from "zod";
2
2
  import { zFireDocSchema, zTagSchema } from "../../shared/zod-schemas";
3
-
4
- export const zChatbeeChannelSchema = z.object({
5
- id: z.string(),
6
- external_id: z.string(),
7
- name: z.string(),
8
- });
9
-
10
- export const zChatbeeContactSchema = z.object({
11
- id: z.string(),
12
- external_id: z.string(),
13
- name: z.string(),
14
- is_group: z.string(),
15
- address: z.string(),
16
- type: z.string(),
17
- });
3
+ import {
4
+ zChatbeeChannelSchema,
5
+ zChatbeeContactSchema,
6
+ zChatbeeContactHistorySchema,
7
+ } from "../chatbee/zod-schemas";
18
8
 
19
9
  export const zChatContactSchema = zFireDocSchema
20
10
  .extend({
@@ -22,6 +12,13 @@ export const zChatContactSchema = zFireDocSchema
22
12
  contact: zChatbeeContactSchema.nullable().optional(),
23
13
  lead_id: z.string().nullable().optional(),
24
14
  lead_ref: z.any().nullable().optional(),
15
+ histories: z.array(zChatbeeContactHistorySchema).optional(), // Lista de históricos (opcional)
16
+ ai_active: z.boolean().optional(), // Se o atendimento por IA está ativo
17
+ hub_ia_action: z.string().optional(), // Qual ação a IA está fazendo
18
+ hub_ia_status: z.string().optional(), // processing / done
19
+ hub_ia_suggestion: z.string().optional(), // Sugestão de resposta
20
+ hub_ia_action_suggestion: z.string().optional(), // Sugestão de ação da IA
21
+ hub_ia_mode: z.string().optional(), // reply, suggestion
25
22
  tags: z.array(zTagSchema).nullable().optional(),
26
23
  userRef: z.any(),
27
24
  })
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
- export interface IChatbeeChannel {
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
- export interface IChatbeeChannel {
4
- id: string;
5
- external_id: string;
6
- name: string;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.109",
3
+ "version": "1.3.111",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",