evo360-types 1.3.119 → 1.3.121
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 +2 -2
- package/dist/apps/evo-chat/chatbee/zod-schemas.js +12 -8
- package/dist/apps/evo-chat/chatbee/zod-schemas.ts +9 -7
- package/dist/apps/evo-chat/contact/zod-schemas.d.ts +9 -6
- package/dist/apps/evo-chat/contact/zod-schemas.js +1 -0
- package/dist/apps/evo-chat/contact/zod-schemas.ts +1 -0
- package/dist/types/evo-chat/contact/index.d.ts +1 -0
- package/dist/types/evo-chat/contact/index.ts +1 -0
- package/package.json +1 -1
|
@@ -196,7 +196,7 @@ export declare const zChatbeeContactSchema: z.ZodObject<{
|
|
|
196
196
|
id: z.ZodOptional<z.ZodString>;
|
|
197
197
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
198
|
name: z.ZodOptional<z.ZodString>;
|
|
199
|
-
is_group: z.
|
|
199
|
+
is_group: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
200
200
|
address: z.ZodOptional<z.ZodString>;
|
|
201
201
|
type: z.ZodOptional<z.ZodString>;
|
|
202
202
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -212,7 +212,7 @@ export declare const zChatbeeContactSchema: z.ZodObject<{
|
|
|
212
212
|
type?: string | undefined;
|
|
213
213
|
external_id?: string | null | undefined;
|
|
214
214
|
address?: string | undefined;
|
|
215
|
-
is_group?:
|
|
215
|
+
is_group?: unknown;
|
|
216
216
|
}>;
|
|
217
217
|
export declare const zChatbeeContactHistoryPayloadCreatedSchema: z.ZodObject<{
|
|
218
218
|
department: z.ZodOptional<z.ZodObject<{
|
|
@@ -38,14 +38,18 @@ exports.zChatbeeContactSchema = zod_1.z.object({
|
|
|
38
38
|
id: zod_1.z.string().optional(),
|
|
39
39
|
external_id: zod_1.z.string().nullable().optional(),
|
|
40
40
|
name: zod_1.z.string().optional(),
|
|
41
|
-
is_group: zod_1.z
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (typeof
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
is_group: zod_1.z.preprocess((val) => {
|
|
42
|
+
if (typeof val === "boolean")
|
|
43
|
+
return val;
|
|
44
|
+
if (typeof val === "string") {
|
|
45
|
+
const lowered = val.toLowerCase();
|
|
46
|
+
if (lowered === "true")
|
|
47
|
+
return true;
|
|
48
|
+
if (lowered === "false")
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
return undefined; // mantém compatibilidade com optional()
|
|
52
|
+
}, zod_1.z.boolean().optional()),
|
|
49
53
|
address: zod_1.z.string().optional(),
|
|
50
54
|
type: zod_1.z.string().optional(),
|
|
51
55
|
});
|
|
@@ -40,13 +40,15 @@ export const zChatbeeContactSchema = z.object({
|
|
|
40
40
|
id: z.string().optional(),
|
|
41
41
|
external_id: z.string().nullable().optional(),
|
|
42
42
|
name: z.string().optional(),
|
|
43
|
-
is_group: z
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
is_group: z.preprocess((val) => {
|
|
44
|
+
if (typeof val === "boolean") return val;
|
|
45
|
+
if (typeof val === "string") {
|
|
46
|
+
const lowered = val.toLowerCase();
|
|
47
|
+
if (lowered === "true") return true;
|
|
48
|
+
if (lowered === "false") return false;
|
|
49
|
+
}
|
|
50
|
+
return undefined; // mantém compatibilidade com optional()
|
|
51
|
+
}, z.boolean().optional()),
|
|
50
52
|
address: z.string().optional(),
|
|
51
53
|
type: z.string().optional(),
|
|
52
54
|
});
|
|
@@ -25,7 +25,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
25
25
|
id: z.ZodOptional<z.ZodString>;
|
|
26
26
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
name: z.ZodOptional<z.ZodString>;
|
|
28
|
-
is_group: z.
|
|
28
|
+
is_group: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
29
29
|
address: z.ZodOptional<z.ZodString>;
|
|
30
30
|
type: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -41,7 +41,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
41
41
|
type?: string | undefined;
|
|
42
42
|
external_id?: string | null | undefined;
|
|
43
43
|
address?: string | undefined;
|
|
44
|
-
is_group?:
|
|
44
|
+
is_group?: unknown;
|
|
45
45
|
}>>>;
|
|
46
46
|
lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -196,6 +196,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
196
196
|
hub_ia_status: z.ZodOptional<z.ZodString>;
|
|
197
197
|
hub_ia_suggestion: z.ZodOptional<z.ZodString>;
|
|
198
198
|
hub_ia_action_suggestion: z.ZodOptional<z.ZodString>;
|
|
199
|
+
hub_ia_raised_hand: z.ZodOptional<z.ZodBoolean>;
|
|
199
200
|
hub_ia_mode: z.ZodOptional<z.ZodString>;
|
|
200
201
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
201
202
|
name: z.ZodString;
|
|
@@ -243,7 +244,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
243
244
|
id: z.ZodOptional<z.ZodString>;
|
|
244
245
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
246
|
name: z.ZodOptional<z.ZodString>;
|
|
246
|
-
is_group: z.
|
|
247
|
+
is_group: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
247
248
|
address: z.ZodOptional<z.ZodString>;
|
|
248
249
|
type: z.ZodOptional<z.ZodString>;
|
|
249
250
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -259,7 +260,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
259
260
|
type?: string | undefined;
|
|
260
261
|
external_id?: string | null | undefined;
|
|
261
262
|
address?: string | undefined;
|
|
262
|
-
is_group?:
|
|
263
|
+
is_group?: unknown;
|
|
263
264
|
}>>>;
|
|
264
265
|
lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
265
266
|
lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -414,6 +415,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
414
415
|
hub_ia_status: z.ZodOptional<z.ZodString>;
|
|
415
416
|
hub_ia_suggestion: z.ZodOptional<z.ZodString>;
|
|
416
417
|
hub_ia_action_suggestion: z.ZodOptional<z.ZodString>;
|
|
418
|
+
hub_ia_raised_hand: z.ZodOptional<z.ZodBoolean>;
|
|
417
419
|
hub_ia_mode: z.ZodOptional<z.ZodString>;
|
|
418
420
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
419
421
|
name: z.ZodString;
|
|
@@ -461,7 +463,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
461
463
|
id: z.ZodOptional<z.ZodString>;
|
|
462
464
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
463
465
|
name: z.ZodOptional<z.ZodString>;
|
|
464
|
-
is_group: z.
|
|
466
|
+
is_group: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
465
467
|
address: z.ZodOptional<z.ZodString>;
|
|
466
468
|
type: z.ZodOptional<z.ZodString>;
|
|
467
469
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -477,7 +479,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
477
479
|
type?: string | undefined;
|
|
478
480
|
external_id?: string | null | undefined;
|
|
479
481
|
address?: string | undefined;
|
|
480
|
-
is_group?:
|
|
482
|
+
is_group?: unknown;
|
|
481
483
|
}>>>;
|
|
482
484
|
lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
483
485
|
lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -632,6 +634,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
632
634
|
hub_ia_status: z.ZodOptional<z.ZodString>;
|
|
633
635
|
hub_ia_suggestion: z.ZodOptional<z.ZodString>;
|
|
634
636
|
hub_ia_action_suggestion: z.ZodOptional<z.ZodString>;
|
|
637
|
+
hub_ia_raised_hand: z.ZodOptional<z.ZodBoolean>;
|
|
635
638
|
hub_ia_mode: z.ZodOptional<z.ZodString>;
|
|
636
639
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
637
640
|
name: z.ZodString;
|
|
@@ -16,6 +16,7 @@ exports.zChatContactSchema = zod_schemas_1.zFireDocSchema
|
|
|
16
16
|
hub_ia_status: zod_1.z.string().optional(), // processing / done
|
|
17
17
|
hub_ia_suggestion: zod_1.z.string().optional(), // Sugestão de resposta
|
|
18
18
|
hub_ia_action_suggestion: zod_1.z.string().optional(), // Sugestão de ação da IA
|
|
19
|
+
hub_ia_raised_hand: zod_1.z.boolean().optional(), // IA levantou a mão - pede interação humana
|
|
19
20
|
hub_ia_mode: zod_1.z.string().optional(), // reply, suggestion
|
|
20
21
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
21
22
|
userRef: zod_1.z.any(),
|
|
@@ -18,6 +18,7 @@ export const zChatContactSchema = zFireDocSchema
|
|
|
18
18
|
hub_ia_status: z.string().optional(), // processing / done
|
|
19
19
|
hub_ia_suggestion: z.string().optional(), // Sugestão de resposta
|
|
20
20
|
hub_ia_action_suggestion: z.string().optional(), // Sugestão de ação da IA
|
|
21
|
+
hub_ia_raised_hand: z.boolean().optional(), // IA levantou a mão - pede interação humana
|
|
21
22
|
hub_ia_mode: z.string().optional(), // reply, suggestion
|
|
22
23
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
23
24
|
userRef: z.any(),
|
|
@@ -11,6 +11,7 @@ export interface IChatContact extends IFireDoc {
|
|
|
11
11
|
hub_ia_status?: string;
|
|
12
12
|
hub_ia_suggestion?: string;
|
|
13
13
|
hub_ia_action_suggestion?: string;
|
|
14
|
+
hub_ia_raised_hand?: boolean;
|
|
14
15
|
hub_ia_mode?: string;
|
|
15
16
|
tags?: ITag[] | null;
|
|
16
17
|
userRef?: FirestoreDocumentReference;
|
|
@@ -16,6 +16,7 @@ export interface IChatContact extends IFireDoc {
|
|
|
16
16
|
hub_ia_status?: string; // processing / done
|
|
17
17
|
hub_ia_suggestion?: string; // Sugestão de resposta
|
|
18
18
|
hub_ia_action_suggestion?: string; // Sugestão de ação da IA
|
|
19
|
+
hub_ia_raised_hand?: boolean; // IA levantou a mão - pede interação humana
|
|
19
20
|
hub_ia_mode?: string; // reply, suggestion
|
|
20
21
|
tags?: ITag[] | null;
|
|
21
22
|
userRef?: FirestoreDocumentReference;
|