evo360-types 1.3.121 → 1.3.123

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.
@@ -44,6 +44,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
44
44
  is_group?: unknown;
45
45
  }>>>;
46
46
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ leads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
47
48
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
48
49
  histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
50
  id: z.ZodOptional<z.ZodString>;
@@ -263,6 +264,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
263
264
  is_group?: unknown;
264
265
  }>>>;
265
266
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ leads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
266
268
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
267
269
  histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
270
  id: z.ZodOptional<z.ZodString>;
@@ -482,6 +484,7 @@ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
482
484
  is_group?: unknown;
483
485
  }>>>;
484
486
  lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
487
+ leads: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
485
488
  lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
486
489
  histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
487
490
  id: z.ZodOptional<z.ZodString>;
@@ -9,6 +9,7 @@ exports.zChatContactSchema = zod_schemas_1.zFireDocSchema
9
9
  channel: zod_schemas_2.zChatbeeChannelSchema.nullable().optional(),
10
10
  contact: zod_schemas_2.zChatbeeContactSchema.nullable().optional(),
11
11
  lead_id: zod_1.z.string().nullable().optional(),
12
+ leads: zod_1.z.array(zod_1.z.string()).nullable().optional(),
12
13
  lead_ref: zod_1.z.any().nullable().optional(),
13
14
  histories: zod_1.z.array(zod_schemas_2.zChatbeeContactHistorySchema).optional(), // Lista de históricos (opcional)
14
15
  ai_active: zod_1.z.boolean().optional(), // Se o atendimento por IA está ativo
@@ -11,6 +11,7 @@ export const zChatContactSchema = zFireDocSchema
11
11
  channel: zChatbeeChannelSchema.nullable().optional(),
12
12
  contact: zChatbeeContactSchema.nullable().optional(),
13
13
  lead_id: z.string().nullable().optional(),
14
+ leads: z.array(z.string()).nullable().optional(),
14
15
  lead_ref: z.any().nullable().optional(),
15
16
  histories: z.array(zChatbeeContactHistorySchema).optional(), // Lista de históricos (opcional)
16
17
  ai_active: z.boolean().optional(), // Se o atendimento por IA está ativo
@@ -46,6 +46,8 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
46
46
  photo_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  photo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  }>, {
49
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ social_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
51
  status: z.ZodOptional<z.ZodEnum<["active", "inactive", "draft"]>>;
50
52
  qualification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
53
  code: z.ZodString;
@@ -157,6 +159,8 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
157
159
  photo_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
160
  photo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
161
  }>, {
162
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ social_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
164
  status: z.ZodOptional<z.ZodEnum<["active", "inactive", "draft"]>>;
161
165
  qualification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
162
166
  code: z.ZodString;
@@ -268,6 +272,8 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
268
272
  photo_ref: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
273
  photo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
274
  }>, {
275
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
276
+ social_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
277
  status: z.ZodOptional<z.ZodEnum<["active", "inactive", "draft"]>>;
272
278
  qualification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
273
279
  code: z.ZodString;
@@ -19,6 +19,8 @@ exports.zLeadDistChannelSchema = zod_1.z.object({
19
19
  });
20
20
  exports.zLeadSchema = zod_schemas_2.zProfileSchema // Extend from ProfileSchema
21
21
  .extend({
22
+ external_id: zod_1.z.string().nullable().optional(),
23
+ social_id: zod_1.z.string().nullable().optional(),
22
24
  status: exports.zLeadStatusSchema.optional(),
23
25
  qualification: exports.zLeadQualificationSchema.nullable().optional(),
24
26
  distChannel: exports.zLeadDistChannelSchema.nullable().optional(),
@@ -24,6 +24,8 @@ export const zLeadDistChannelSchema = z.object({
24
24
 
25
25
  export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
26
26
  .extend({
27
+ external_id: z.string().nullable().optional(),
28
+ social_id: z.string().nullable().optional(),
27
29
  status: zLeadStatusSchema.optional(),
28
30
  qualification: zLeadQualificationSchema.nullable().optional(),
29
31
  distChannel: zLeadDistChannelSchema.nullable().optional(),
@@ -4,6 +4,7 @@ export interface IChatContact extends IFireDoc {
4
4
  channel?: IChatbeeChannel | null;
5
5
  contact?: IChatbeeContact | null;
6
6
  lead_id?: string | null;
7
+ leads?: string[] | null;
7
8
  lead_ref?: FirestoreDocumentReference | null;
8
9
  histories?: IChatbeeContactHistory[];
9
10
  ai_active?: boolean;
@@ -9,6 +9,7 @@ export interface IChatContact extends IFireDoc {
9
9
  channel?: IChatbeeChannel | null;
10
10
  contact?: IChatbeeContact | null;
11
11
  lead_id?: string | null;
12
+ leads?: string[] | null;
12
13
  lead_ref?: FirestoreDocumentReference | null;
13
14
  histories?: IChatbeeContactHistory[]; // Lista de históricos (opcional)
14
15
  ai_active?: boolean; // Se o atendimento por IA está ativo
@@ -20,6 +20,8 @@ export interface ILeadDistChannel {
20
20
  ref?: FirestoreDocumentReference;
21
21
  }
22
22
  export interface ILead extends IProfile {
23
+ external_id?: string | null;
24
+ social_id?: string | null;
23
25
  status?: LeadStatus;
24
26
  qualification?: ILeadQualification | null;
25
27
  distChannel?: ILeadDistChannel | null;
@@ -31,6 +31,8 @@ export interface ILeadDistChannel {
31
31
  }
32
32
 
33
33
  export interface ILead extends IProfile {
34
+ external_id?: string | null; // ID externo do paciente
35
+ social_id?: string | null; //CPF
34
36
  status?: LeadStatus;
35
37
  qualification?: ILeadQualification | null;
36
38
  distChannel?: ILeadDistChannel | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.121",
3
+ "version": "1.3.123",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",